From: jstebbins Date: Fri, 15 Apr 2011 15:38:45 +0000 (+0000) Subject: LinGui: fix incorrect list element free in custom hud widget X-Git-Tag: 0.9.6~536 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=463b2127304a4701fcfff7f499d4dfc31828075c;p=handbrake 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 --- 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));