mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
widget: Don't leak the cursor on destruction
This commit is contained in:
parent
2eb78a2374
commit
f80a90d39a
@ -9999,6 +9999,8 @@ gtk_widget_dispose (GObject *object)
|
||||
if (_gtk_widget_get_realized (widget))
|
||||
gtk_widget_unrealize (widget);
|
||||
|
||||
g_clear_object (&priv->cursor);
|
||||
|
||||
if (!priv->in_destruction)
|
||||
{
|
||||
priv->in_destruction = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user