From: Christian Persch Date: Thu, 7 Jul 2005 19:12:10 +0000 (+0000) Subject: Don't leak windows. X-Git-Tag: EVINCE_0_3_3~141 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=21e06a015c401d69e56aa6711eed5d7c89d44f96;p=evince.git Don't leak windows. 2005-07-07 Christian Persch * cut-n-paste/toolbar-editor/egg-editable-toolbar.c: (new_pixbuf_from_widget), (new_separator_pixbuf): Don't leak windows. --- diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 4c307448..006df26a 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; }