forked from AuroraMiddleware/gtk
Don't leak the queried file info
https://bugzilla.gnome.org/show_bug.cgi?id=554618
This commit is contained in:
parent
c287845240
commit
e709c965a4
@ -3969,6 +3969,7 @@ file_system_model_got_thumbnail (GObject *object, GAsyncResult *res, gpointer da
|
||||
/* file was deleted */
|
||||
if (!_gtk_file_system_model_get_iter_for_file (model, &iter, file))
|
||||
{
|
||||
g_object_unref (queried);
|
||||
gdk_threads_leave ();
|
||||
return;
|
||||
}
|
||||
@ -3982,6 +3983,7 @@ file_system_model_got_thumbnail (GObject *object, GAsyncResult *res, gpointer da
|
||||
_gtk_file_system_model_update_file (model, file, info);
|
||||
|
||||
g_object_unref (info);
|
||||
g_object_unref (queried);
|
||||
|
||||
gdk_threads_leave ();
|
||||
}
|
||||
|
@ -1229,6 +1229,8 @@ gtk_file_system_model_query_done (GObject * object,
|
||||
id = node_get_for_file (model, file);
|
||||
gtk_file_system_model_sort_node (model, id);
|
||||
|
||||
g_object_unref (info);
|
||||
|
||||
gdk_threads_leave ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user