aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-08 15:59:11 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-08 15:59:11 +0800
commit77bfef25b822b4aa865ba9fd44a5dc22efafe690 (patch)
treec2a234ac03df50dcff065bca3d4966880fa44b6c /lib/egg
parentb99e85756a49c11394ee323a2dee03a521ac93b3 (diff)
downloadgsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar.gz
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar.bz2
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar.lz
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar.xz
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.tar.zst
gsoc2013-epiphany-77bfef25b822b4aa865ba9fd44a5dc22efafe690.zip
Don't leak windows.
2005-07-07 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-editable-toolbar.c: (new_pixbuf_from_widget), (new_separator_pixbuf): Don't leak windows.
Diffstat (limited to 'lib/egg')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 4c3074480..006df26a7 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/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;
}