wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.34k stars 1.79k forks source link

Fix for a memory leak reading a JPEG #5215

Closed wxtrac closed 3 years ago

wxtrac commented 23 years ago

Issue migrated from trac ticket # 5215

priority: normal

2001-11-23 14:53:32: nodet created the issue


If one tries to read a JPEG file but the file is not actually a JPEG image, the memory allocated on line 133 in imagjpeg is not freed.

wxtrac commented 23 years ago

2001-11-23 14:53:36: nodet uploaded file preventLeak.patch (0.6 KiB)

Leak correction when error in JPEG reading

wxtrac commented 23 years ago

2001-11-23 20:41:08: @vslavik commented


your patch was applied to the cvs trunk, thanks!