From: Matthias Clasen Date: Mon, 23 Dec 2013 20:00:55 +0000 (-0500) Subject: Make GFileIcon more robust X-Git-Tag: 2.39.3~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a37e403e6813305fe0b3dd57b0db1a1eb30a627;hp=34de9189f6f29dccbad8224a9605e4eb6d40b94e;p=platform%2Fupstream%2Fglib.git Make GFileIcon more robust No reason not to survive g_object_unref (g_object_new (...)) --- diff --git a/gio/gfileicon.c b/gio/gfileicon.c index 0778107..b40ef00 100644 --- a/gio/gfileicon.c +++ b/gio/gfileicon.c @@ -120,7 +120,8 @@ g_file_icon_finalize (GObject *object) icon = G_FILE_ICON (object); - g_object_unref (icon->file); + if (icon->file) + g_object_unref (icon->file); G_OBJECT_CLASS (g_file_icon_parent_class)->finalize (object); }