Issue #1974: Memory leak in gimpimage.c.
Ok my previous fix was wrong (at least for the part in the macro). This is a macro, not a function. So each time we write _reason, the call to g_strdup_printf() is reevaluated, hence data is allocated. The right fix is to prepend `tmp` to the list, not `_reason`. Thanks to Massimo for the debugging, as always!
Showing with 1 addition and 2 deletions