jbaiter / jpegtran-cffi

Fast, (mostly) lossless JPEG transformations with Python
http://jpegtran-cffi.readthedocs.org
MIT License
145 stars 23 forks source link

Fix memory leak #7

Closed sboisson closed 10 years ago

sboisson commented 10 years ago

Client code is supposed to free the output buffer, so I added some GC callback.. But since the output memory buffer can be large, it would make sense to implement the transformations as context managers instead..

jbaiter commented 10 years ago

:+1: Thank you! Will be merged tonight when I'm back home :-)