[gtk/window-destroy: 9/16] popover: Fix a reference leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/window-destroy: 9/16] popover: Fix a reference leak
- Date: Sat, 9 May 2020 23:52:45 +0000 (UTC)
commit fa403caf4f40eca039edf06b9e7b5920fe63a1e3
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 9 15:20:15 2020 -0400
popover: Fix a reference leak
Don't leak the reference to the default widget.
gtk/gtkpopover.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 7b21e2b725..a88187fd4c 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -1025,6 +1025,7 @@ gtk_popover_dispose (GObject *object)
GtkPopover *popover = GTK_POPOVER (object);
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
+ g_clear_object (&priv->default_widget);
g_clear_pointer (&priv->contents_widget, gtk_widget_unparent);
g_clear_pointer (&priv->arrow_render_node, gsk_render_node_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]