Commit 23474d5f authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Don't ref pixbuf if it is NULL

2009-02-26  Alexander Larsson  <alexl@redhat.com>

	* src/file-manager/fm-directory-view.c (add_submenu):
	Don't ref pixbuf if it is NULL


svn path=/trunk/; revision=15022
parent bab2a2bc
2009-02-26 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-directory-view.c (add_submenu):
Don't ref pixbuf if it is NULL
2009-02-25 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-file-operations.c (copy_files):
......
......@@ -4212,9 +4212,11 @@ add_submenu (GtkUIManager *ui_manager,
escaped_label,
NULL,
NULL);
g_object_set_data_full (G_OBJECT (action), "menu-icon",
g_object_ref (pixbuf),
g_object_unref);
if (pixbuf != NULL) {
g_object_set_data_full (G_OBJECT (action), "menu-icon",
g_object_ref (pixbuf),
g_object_unref);
}
g_object_set (action, "hide-if-empty", FALSE, NULL);
......
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