Commit 914053a2 authored by Michael Natterer's avatar Michael Natterer 😴

gtk_window_set_attached_to: ref(), not ref_sink() the attach_widget

The attached popup doesn't take ownership of its "parent" widget, so
ref_sink() was wrong, and caused widgets to be leaked.
parent db14dc82
......@@ -2662,7 +2662,7 @@ gtk_window_set_attached_to (GtkWindow *window,
_gtk_widget_add_attached_window (priv->attach_widget, window);
g_object_ref_sink (priv->attach_widget);
g_object_ref (priv->attach_widget);
/* Update the style, as the widget path might change. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment