summaryrefslogtreecommitdiff
path: root/gtk/gtkpopover.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-09 15:20:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 12:19:39 -0400
commitddebf07236efb9dd85ab8a4ac1b71f4f9f40f378 (patch)
tree11baf4b31c0f9866c95ddf03665cfa773a442c39 /gtk/gtkpopover.c
parent0ba1aad4e3d16e2ffa3dd9ab73c27f19785b66c8 (diff)
downloadgtk+-ddebf07236efb9dd85ab8a4ac1b71f4f9f40f378.tar.gz
popover: Fix a reference leak
Don't leak the reference to the default widget.
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r--gtk/gtkpopover.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index ccf55e48f3..8a0d3e9e3d 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);