GtkTextView: disconnect the magifier on destroy

This prevents warnings that would otherwise happen when
the magifier is finalized.
This commit is contained in:
Matthias Clasen 2014-12-20 19:19:24 -05:00
parent 10d0ca0a3d
commit 52b3b4207f

View File

@ -3272,6 +3272,9 @@ gtk_text_view_destroy (GtkWidget *widget)
priv->pixel_cache = NULL;
}
if (priv->magnifier)
_gtk_magnifier_set_inspected (GTK_MAGNIFIER (priv->magnifier), NULL);
GTK_WIDGET_CLASS (gtk_text_view_parent_class)->destroy (widget);
}