Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-07 19:12:10 (GMT)
committer Christian Persch <chpe@src.gnome.org>2005-07-07 19:12:10 (GMT)
commit21e06a015c401d69e56aa6711eed5d7c89d44f96 (patch)
tree6076d7c68e355f8c41d349b5eabe8a7785ee43b8 /cut-n-paste/toolbar-editor/egg-editable-toolbar.c
parent59bc4c9a45ccb89fa44f5e6311e3668285a63d68 (diff)
Don't leak windows.
2005-07-07 Christian Persch <chpe@cvs.gnome.org> * cut-n-paste/toolbar-editor/egg-editable-toolbar.c: (new_pixbuf_from_widget), (new_separator_pixbuf): Don't leak windows.
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c')
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
index 4c30744..006df26 100644
--- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
+++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -1411,6 +1411,8 @@ new_pixbuf_from_widget (GtkWidget *widget)
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, icon_width, icon_height);
gdk_pixbuf_get_from_drawable (pixbuf, pixmap, NULL, 0, 0, 0, 0, icon_width, icon_height);
+ gtk_widget_destroy (window);
+
return pixbuf;
}
@@ -1422,7 +1424,6 @@ new_separator_pixbuf ()
separator = gtk_vseparator_new ();
pixbuf = new_pixbuf_from_widget (separator);
- gtk_widget_destroy (separator);
return pixbuf;
}