app: fix string array leak as reported by Massimo.

This commit is contained in:
Jehan 2021-08-14 12:54:13 +02:00
parent ac0a084e6e
commit 4f7dceff15
1 changed files with 1 additions and 2 deletions

View File

@ -447,13 +447,12 @@ gimp_version_break (const gchar *v,
if (versions[2] != NULL)
{
*micro = g_ascii_strtoll (versions[2], NULL, 10);
return TRUE;
}
}
}
g_strfreev (versions);
return (*major > 0);
return (*major > 0 || *minor > 0 || *micro > 0);
}
/**