mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
popover: Fix a reference leak
Don't leak the reference to the default widget.
This commit is contained in:
parent
0ba1aad4e3
commit
ddebf07236
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user