summaryrefslogtreecommitdiffstats
path: root/gtk/src/ghbcompositor.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-04-15 15:38:45 +0000
committerjstebbins <[email protected]>2011-04-15 15:38:45 +0000
commit463b2127304a4701fcfff7f499d4dfc31828075c (patch)
tree643ef6c5f375fa4e37a84b7aa22220c33dd5a8ab /gtk/src/ghbcompositor.c
parent4ae66f9801e2dc90c4b43aad2137bcc01fa7ad4c (diff)
LinGui: fix incorrect list element free in custom hud widget
was freeing the widget instead of the structure that contains the widget. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3927 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/ghbcompositor.c')
-rw-r--r--gtk/src/ghbcompositor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/src/ghbcompositor.c b/gtk/src/ghbcompositor.c
index 5506975d4..e65cfc657 100644
--- a/gtk/src/ghbcompositor.c
+++ b/gtk/src/ghbcompositor.c
@@ -418,8 +418,10 @@ ghb_compositor_remove(GtkContainer *container, GtkWidget *child)
{
gboolean was_visible = gtk_widget_get_visible( child );
gtk_widget_unparent(child);
- compositor->children = g_list_remove(compositor->children, child);
- g_free(child);
+ compositor->children = g_list_remove_link(
+ compositor->children, link);
+ g_list_free(link);
+ g_free(cc);
if (was_visible && gtk_widget_get_visible (GTK_WIDGET(container)))
gtk_widget_queue_resize(GTK_WIDGET(container));