diff options
author | Xan Lopez <xan@gnome.org> | 2010-06-13 05:06:04 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-06-13 05:06:04 +0800 |
commit | 4634aca00a9188e83ff6f53fb43da1e137b84bd4 (patch) | |
tree | c62f89414d4b1a87617699fc565704dddde70eee /src | |
parent | 864d20152054e684a5cbb0b2dbde8f6bdf63f698 (diff) | |
download | gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar.gz gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar.bz2 gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar.lz gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar.xz gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.tar.zst gsoc2013-epiphany-4634aca00a9188e83ff6f53fb43da1e137b84bd4.zip |
pdm-dialog: plug leak
Diffstat (limited to 'src')
-rw-r--r-- | 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 da372740d..fcd755e7b 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 |