Diffusion Krita 28c71854ce53

Fix leaking memory in case of a broken xcf file

Authored by tymond on May 16 2019, 10:32 PM.

Description

Fix leaking memory in case of a broken xcf file

Before this commit nearly all memory was leaked in case of a faulty xcf
file. This commit tries to patch at least some of them.

Known issues: flatten.c:556

To test if it works correctly, I'd need to test it on broken files.

Before all of the xcf patches in case of a broken file Krita
silently crashed (or rather, closed suddenly with a xcf error code)
because of the way xcf library was written. Having memory leaks
can be considered an improvement over the dataloss crash.

Details

Committed
tymondMay 16 2019, 10:32 PM
Parents
R37:25eff3843646: Improve error handling by xcf
Branches
Unknown
Tags
Unknown