app: free an unusing allocated string when not used as a result.

Another leak reported by Massimo.
This commit is contained in:
Jehan 2021-08-20 21:53:41 +02:00
parent ef56fed9cb
commit 025cebf76f
1 changed files with 4 additions and 0 deletions

View File

@ -730,6 +730,10 @@ gimp_prop_eval_string_selection (GObject *config,
match = TRUE; match = TRUE;
result = value; result = value;
} }
else
{
g_free (value);
}
if (! g_strcmp0 (*t, ",")) if (! g_strcmp0 (*t, ","))
{ {