RESOLVED FIXED 50439
[chromium] PNG encoder leaks memory on png_write_row errors.
https://bugs.webkit.org/show_bug.cgi?id=50439
Summary [chromium] PNG encoder leaks memory on png_write_row errors.
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.