unrealize: Don't ref twice

After the recent change to add an outermost ref/unref pair,
we can do away with the inner one.
This commit is contained in:
Matthias Clasen 2015-03-16 11:54:38 -04:00
parent 70e7b4c848
commit 855c4dc0ce

View File

@ -5577,8 +5577,6 @@ gtk_widget_unrealize (GtkWidget *widget)
if (gtk_widget_get_realized (widget))
{
g_object_ref (widget);
if (widget->priv->mapped)
gtk_widget_unmap (widget);
@ -5588,8 +5586,6 @@ gtk_widget_unrealize (GtkWidget *widget)
g_signal_emit (widget, widget_signals[UNREALIZE], 0);
g_assert (!widget->priv->mapped);
gtk_widget_set_realized (widget, FALSE);
g_object_unref (widget);
}
gtk_widget_pop_verify_invariants (widget);