mirror of https://github.com/GNOME/gimp.git
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:
parent
545257226a
commit
22f234e5b0
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue