Free the jpeg decoder with the stream

This commit is contained in:
Alexander Larsson 2010-04-08 16:35:10 +02:00
parent 5059c304be
commit 18485cef06

View File

@ -94,6 +94,7 @@ MJpegDecoder::MJpegDecoder(int width, int height,
MJpegDecoder::~MJpegDecoder()
{
jpeg_destroy_decompress(&_cinfo);
delete [] _scanline;
if (_data) {
delete [] _data;