We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4280

Summary: Memory leak in XCF handling
Product: SDL_image Reporter: janisozaur <janisozaur+libsdl>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.3   
Hardware: x86_64   
OS: Linux   
Attachments: fix-mem-leak-xcf.c.patch
Memleak reproducer

Description janisozaur 2018-09-28 18:47:47 UTC
Created attachment 3322 [details]
fix-mem-leak-xcf.c.patch

XCF loading can lead to a memory leak. Attached patch fixes this leak.
Comment 1 janisozaur 2018-09-28 18:48:45 UTC
Created attachment 3323 [details]
Memleak reproducer
Comment 2 Sam Lantinga 2018-09-29 03:56:10 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_image/rev/8b4ee1d72a2a