libgimpwidgets: do not free cache before using it for debug output.

Thanks to Massimo for noticing this use-after-free bug.
This commit is contained in:
Jehan 2021-10-01 12:25:34 +02:00
parent 545257226a
commit 22f234e5b0
1 changed files with 2 additions and 2 deletions

View File

@ -727,10 +727,10 @@ transform_cache_config_notify (GObject *config,
if (cache->proof_profile)
g_object_unref (cache->proof_profile);
g_free (cache);
if (debug_cache)
g_printerr ("deleted cache %p\n", cache);
g_free (cache);
}
/**