widget: Don't leak the cursor on destruction

This commit is contained in:
Benjamin Otte 2017-11-06 03:24:34 +01:00
parent 2eb78a2374
commit f80a90d39a

View File

@ -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;