[gtk+] GtkHeaderBar: Fix memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkHeaderBar: Fix memory leak
- Date: Wed, 3 Apr 2013 23:30:39 +0000 (UTC)
commit edbb522f1feb45c868e63702a7b2632a62b3f0ee
Author: Pavel Vasin <rat4vier gmail com>
Date: Thu Mar 28 15:17:54 2013 +0400
GtkHeaderBar: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=696767
gtk/gtkheaderbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index af16180..b15fd0b 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1054,7 +1054,7 @@ gtk_header_bar_remove (GtkContainer *container,
{
child = l->data;
gtk_widget_unparent (child->widget);
- bar->priv->children = g_list_remove_link (bar->priv->children, l);
+ bar->priv->children = g_list_delete_link (bar->priv->children, l);
g_free (child);
gtk_widget_queue_resize (GTK_WIDGET (container));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]