forked from AuroraMiddleware/gtk
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:
parent
a02e25ffff
commit
08d4bb4785
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user