projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34de918
)
Make GFileIcon more robust
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 23 Dec 2013 20:00:55 +0000
(15:00 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 1 Jan 2014 22:59:20 +0000
(17:59 -0500)
No reason not to survive g_object_unref (g_object_new (...))
gio/gfileicon.c
patch
|
blob
|
history
diff --git
a/gio/gfileicon.c
b/gio/gfileicon.c
index 0778107524b24fa07a7a6a4308ce6a40d9614246..b40ef002e950552a4d9a322c8a4402612c5c7472 100644
(file)
--- 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);
}