summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserwidget.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-21 14:02:37 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-21 14:51:25 -0500
commite709c965a4d9d48c8007905de7e715bc7fef728f (patch)
tree1e897d740d2b43655bb0975e6b9d24e6e7032c90 /gtk/gtkfilechooserwidget.c
parentc28784524016b2a8eac18d5046ebc8cdaca7f9b0 (diff)
downloadgtk+-e709c965a4d9d48c8007905de7e715bc7fef728f.tar.gz
Don't leak the queried file info
https://bugzilla.gnome.org/show_bug.cgi?id=554618
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r--gtk/gtkfilechooserwidget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index fb50f73e63..6c2f1a29e2 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -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 ();
}