widget: Fix a memory leak

The transform passed to gtk_widget_allocate is
transfer full, so we must consume the reference
before returning.
This commit is contained in:
Matthias Clasen 2019-12-25 00:40:32 -05:00
parent a02e25ffff
commit 08d4bb4785

View File

@ -4317,7 +4317,10 @@ gtk_widget_allocate (GtkWidget *widget,
gtk_widget_push_verify_invariants (widget);
if (!priv->visible && !GTK_IS_ROOT (widget))
goto out;
{
gsk_transform_unref (transform);
goto out;
}
#ifdef G_ENABLE_DEBUG
if (GTK_DISPLAY_DEBUG_CHECK (_gtk_widget_get_display (widget), RESIZE))