Commit e709c965 authored by William Jon McCann's avatar William Jon McCann

Don't leak the queried file info

https://bugzilla.gnome.org/show_bug.cgi?id=554618
parent c2878452
......@@ -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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment