mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-23 00:09:24 +01:00
Make GFileIcon more robust
No reason not to survive g_object_unref (g_object_new (...))
This commit is contained in:
@@ -120,6 +120,7 @@ g_file_icon_finalize (GObject *object)
|
|||||||
|
|
||||||
icon = G_FILE_ICON (object);
|
icon = G_FILE_ICON (object);
|
||||||
|
|
||||||
|
if (icon->file)
|
||||||
g_object_unref (icon->file);
|
g_object_unref (icon->file);
|
||||||
|
|
||||||
G_OBJECT_CLASS (g_file_icon_parent_class)->finalize (object);
|
G_OBJECT_CLASS (g_file_icon_parent_class)->finalize (object);
|
||||||
|
|||||||
Reference in New Issue
Block a user