Don't leak the queried file info

https://bugzilla.gnome.org/show_bug.cgi?id=554618
This commit is contained in:
William Jon McCann 2014-02-21 14:02:37 -05:00
parent c287845240
commit e709c965a4
2 changed files with 4 additions and 0 deletions

View File

@ -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 ();
}

View File

@ -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 ();
}