Bug 749406 - Displace segfaults on launch

(cherry picked from commit 90273fb57b)
This commit is contained in:
Massimo Valentini
2015-06-21 18:10:22 +02:00
parent afd4602957
commit 9b2c6eb8c2

View File

@ -482,19 +482,19 @@ gimp_item_combo_box_model_add (GimpIntComboBox *combo_box,
g_object_unref (thumb);
g_free (label);
}
if (gimp_item_is_group (items[i]))
{
gint32 *children;
gint n_children;
if (gimp_item_is_group (items[i]))
{
gint32 *children;
gint n_children;
children = gimp_item_get_children (items[i], &n_children);
gimp_item_combo_box_model_add (combo_box, store,
image,
n_children, children,
tree_level + 1);
g_free (children);
}
children = gimp_item_get_children (items[i], &n_children);
gimp_item_combo_box_model_add (combo_box, store,
image,
n_children, children,
tree_level + 1);
g_free (children);
}
}