app/plugin fix #11407 PLUGIN_DEBUG_WRAP=all

So a tester can valgrind all plugins.
This commit is contained in:
bootchk 2024-07-11 09:02:53 -04:00 committed by Lloyd Konneker
parent 20de1e0560
commit 24554d7fe2

View file

@ -120,7 +120,12 @@ gimp_plug_in_debug_argv (GimpPlugInDebug *debug,
basename = g_path_get_basename (name);
if (!(debug->flags & flag) || (strcmp (debug->name, basename) != 0))
/* Return NULL when flags don't match OR
* (targeted plugin is not "all" AND targeted plugin not match passed filename )
*/
if (!(debug->flags & flag) ||
((strcmp (debug->name, basename) != 0) &&
(strcmp (debug->name, "all") != 0)))
{
g_free (basename);
return NULL;