Commit 3dc354e8 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: _gimp_gp_param_to_value() must ref object array elements

because the subsequent gimp_value_array_unref() unrefs them
again.
parent c10f5b2d
......@@ -601,6 +601,9 @@ _gimp_gp_param_to_value (gpointer gimp,
{
objects[i] = (GObject *) get_display_by_id (gimp, id);
}
if (objects[i])
g_object_ref (objects[i]);
}
gimp_value_take_object_array (value, object_type, objects,
......
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