mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
Fixed gtk_distribute_natural_allocation() to place the g_newa *after* g_return_if_fail() guards.
This commit is contained in:
parent
b0713fb3bb
commit
c9ca4beb35
@ -690,11 +690,13 @@ gtk_distribute_natural_allocation (gint extra_space,
|
||||
guint n_requested_sizes,
|
||||
GtkRequestedSize *sizes)
|
||||
{
|
||||
guint *spreading = g_newa (guint, n_requested_sizes);
|
||||
guint *spreading;
|
||||
gint i;
|
||||
|
||||
g_return_val_if_fail (extra_space >= 0, 0);
|
||||
|
||||
spreading = g_newa (guint, n_requested_sizes);
|
||||
|
||||
for (i = 0; i < n_requested_sizes; i++)
|
||||
spreading[i] = i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user