Commit 3a37e403 authored by Matthias Clasen's avatar Matthias Clasen

Make GFileIcon more robust

No reason not to survive g_object_unref (g_object_new (...))
parent 34de9189
......@@ -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);
}
......
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