]> uap-core.de Git - note.git/commitdiff
add missing GFile unref
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 4 Aug 2025 19:13:50 +0000 (21:13 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 4 Aug 2025 19:13:50 +0000 (21:13 +0200)
application/gtk-text.c

index 2f9ad3f67a164e46de67d94f3c71e70481b64f9b..67aab7c00805c84ff06a3b8d99e7de5ebe9a8838 100644 (file)
@@ -1305,4 +1305,5 @@ void editor_insert_image_file(UiText *text, const char *filepath) {
     
     GFile *file = g_file_new_for_path(filepath);
     editor_dnd_add_file(editor, file);
+    g_object_unref(file);
 }