diff options
author | jstebbins <[email protected]> | 2011-04-15 15:38:45 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-04-15 15:38:45 +0000 |
commit | 463b2127304a4701fcfff7f499d4dfc31828075c (patch) | |
tree | 643ef6c5f375fa4e37a84b7aa22220c33dd5a8ab /gtk | |
parent | 4ae66f9801e2dc90c4b43aad2137bcc01fa7ad4c (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')
-rw-r--r-- | gtk/src/ghbcompositor.c | 6 |
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)); |