webp: fix memory leak when using Mux API

This commit is contained in:
Benoit Pierre 2015-02-23 06:04:09 +01:00
parent 4930b66aa9
commit fef9c7001d

View File

@ -189,6 +189,7 @@ PyObject* WebPDecode_wrapper(PyObject* self, PyObject* args)
exif = PyBytes_FromStringAndSize((const char*)exif_data.bytes, exif_data.size);
}
WebPDataClear(&image.bitstream);
WebPMuxDelete(mux);
}
#endif