From 18485cef06283c17ddd98fd5411b71bcb64201a3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 8 Apr 2010 16:35:10 +0200 Subject: Free the jpeg decoder with the stream --- client/mjpeg_decoder.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'client') diff --git a/client/mjpeg_decoder.cpp b/client/mjpeg_decoder.cpp index 21804fb4..df0dbad0 100644 --- a/client/mjpeg_decoder.cpp +++ b/client/mjpeg_decoder.cpp @@ -94,6 +94,7 @@ MJpegDecoder::MJpegDecoder(int width, int height, MJpegDecoder::~MJpegDecoder() { + jpeg_destroy_decompress(&_cinfo); delete [] _scanline; if (_data) { delete [] _data; -- cgit