From 24554d7fe2a461eb948c5bb3cb7bbad1292693f5 Mon Sep 17 00:00:00 2001 From: bootchk Date: Thu, 11 Jul 2024 09:02:53 -0400 Subject: [PATCH] app/plugin fix #11407 PLUGIN_DEBUG_WRAP=all So a tester can valgrind all plugins. --- app/plug-in/gimpplugindebug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/plug-in/gimpplugindebug.c b/app/plug-in/gimpplugindebug.c index 81c1060581..39740c216f 100644 --- a/app/plug-in/gimpplugindebug.c +++ b/app/plug-in/gimpplugindebug.c @@ -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;