aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-gtk
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-10-12 14:10:34 -0500
committerTed Gould <ted@gould.cx>2011-10-12 14:10:34 -0500
commitf573dd2328ddb983a741dec107b88835d6718a52 (patch)
treed092a41b2a426b159f9a458654ec8035a462eea4 /libdbusmenu-gtk
parent1e2a29f24c3f28fd4d7e22ee6f0e873fbcf47e4a (diff)
parentfcd8e4126dea4e2fbde3a17fe842f2cd10750220 (diff)
downloadlibdbusmenu-f573dd2328ddb983a741dec107b88835d6718a52.tar.gz
libdbusmenu-f573dd2328ddb983a741dec107b88835d6718a52.tar.bz2
libdbusmenu-f573dd2328ddb983a741dec107b88835d6718a52.zip
If the child is copied make sure we don't delete the original.
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index 5488f93..ef77a2e 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -449,6 +449,7 @@ genericmenuitem_set_image (Genericmenuitem * menu_item, GtkWidget * image)
if (GTK_IS_IMAGE(child)) {
/* We've got a label, let's update it. */
imagew = GTK_IMAGE(child);
+ child = NULL;
} else if (GTK_IS_BOX(child)) {
/* Look for the label in the box */
gtk_container_foreach(GTK_CONTAINER(child), set_image_helper, &imagew);