Bug 50439

Summary: [chromium] PNG encoder leaks memory on png_write_row errors.
Product: WebKit Reporter: noel gordon <noel.gordon>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, mdelaney7
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
patch none

noel gordon
Reported 2010-12-02 23:01:06 PST
Once the encoder setjmp() is called during initialization, any C++ objects created after that point won't have their destructors called on error due to the way setjmp() unwinds the stack. So in the error case, the OwnArrayPtr |rowPixels| leaks its memory.
Attachments
patch (4.26 KB, patch)
2010-12-02 23:29 PST, noel gordon
no flags
noel gordon
Comment 1 2010-12-02 23:29:07 PST
WebKit Commit Bot
Comment 2 2010-12-03 00:53:58 PST
Comment on attachment 75467 [details] patch Clearing flags on attachment: 75467 Committed r73250: <http://trac.webkit.org/changeset/73250>
WebKit Commit Bot
Comment 3 2010-12-03 00:54:03 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.