mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 23:50:16 +00:00
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.
This commit is contained in:
parent
db14dc8237
commit
914053a2a3
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user