[gtk/wip/baedert/for-master: 33/55] widget: Plug layout manager leak
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 33/55] widget: Plug layout manager leak
- Date: Tue, 8 Oct 2019 07:45:42 +0000 (UTC)
commit ee75198dbebbb3a9b50813c285b6ed522a26ba46
Author: Timm Bäder <mail baedert org>
Date: Sun Sep 29 07:57:43 2019 +0200
widget: Plug layout manager leak
gtk/gtkwidget.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 877b387d43..51a2794feb 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13438,6 +13438,12 @@ gtk_widget_set_layout_manager (GtkWidget *widget,
if (priv->layout_manager == layout_manager)
return;
+ if (priv->layout_manager)
+ {
+ gtk_layout_manager_set_widget (priv->layout_manager, NULL);
+ g_object_unref (priv->layout_manager);
+ }
+
priv->layout_manager = layout_manager;
if (priv->layout_manager != NULL)
gtk_layout_manager_set_widget (priv->layout_manager, widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]