Commit 8ef87b09 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: fix crash introduced in commit bfe4a2f9

Freeing stuff is good, but freeing twice is not so good.
parent 0a1e9d11
Pipeline #112288 passed with stages
in 12 minutes and 59 seconds
......@@ -982,9 +982,10 @@ _gimp_gp_params_free (GPParam *params,
case GP_PARAM_TYPE_PARASITE:
if (full_copy)
g_free (params[i].data.d_parasite.name);
if (params[i].data.d_parasite.data)
g_free (params[i].data.d_parasite.data);
{
g_free (params[i].data.d_parasite.name);
g_free (params[i].data.d_parasite.data);
}
break;
case GP_PARAM_TYPE_PARAM_DEF:
......
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