Commit c9ca4beb authored by Tristan Van Berkom's avatar Tristan Van Berkom

Fixed gtk_distribute_natural_allocation() to place the g_newa *after* g_return_if_fail() guards.

parent b0713fb3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment