From ddebf07236efb9dd85ab8a4ac1b71f4f9f40f378 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 May 2020 15:20:15 -0400 Subject: popover: Fix a reference leak Don't leak the reference to the default widget. --- gtk/gtkpopover.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk/gtkpopover.c') 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); -- cgit v1.2.1