[epiphany/tmp-gnome-2-32: 22/31] pdm-dialog: plug leak



commit 99e60e5755c916224f6ec75b25e2b9f90f47d28c
Author: Xan Lopez <xan gnome org>
Date:   Sun Jun 13 00:06:04 2010 +0300

    pdm-dialog: plug leak

 src/pdm-dialog.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index 8637a0b..9a97a5b 100644
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -354,13 +354,15 @@ clear_all_dialog_checkbutton_toggled_cb (GtkToggleButton *toggle,
 static GtkWidget*
 _gtk_message_dialog_get_content_area (GtkMessageDialog *dialog)
 {
-	GtkWidget *image, *parent;
+	GtkWidget *image, *parent, *box;
 	GList *children;
 
 	image = gtk_message_dialog_get_image (dialog);
 	parent = gtk_widget_get_parent (image);
 	children = gtk_container_get_children (GTK_CONTAINER (parent));
-	return GTK_WIDGET (children->next->data);
+	box = GTK_WIDGET (children->next->data);
+	g_list_free (children);
+	return box;
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]