diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-09 15:20:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-11 12:19:39 -0400 |
commit | ddebf07236efb9dd85ab8a4ac1b71f4f9f40f378 (patch) | |
tree | 11baf4b31c0f9866c95ddf03665cfa773a442c39 /gtk/gtkpopover.c | |
parent | 0ba1aad4e3d16e2ffa3dd9ab73c27f19785b66c8 (diff) | |
download | gtk+-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.c | 1 |
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); |