Fixed memory leak * src/GZipDecoder.cc
@@ -1,3 +1,8 @@
+2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
+
+ Fixed memory leak
+ * src/GZipDecoder.cc
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak
@@ -49,6 +49,8 @@ GZipDecoder::~GZipDecoder()
void GZipDecoder::init()
{
+ _finished = false;
+ release();
_strm = new z_stream();
_strm->zalloc = Z_NULL;
_strm->zfree = Z_NULL;
@@ -66,6 +68,7 @@ void GZipDecoder::release()
if(_strm) {
inflateEnd(_strm);
+ delete _strm;
_strm = 0;
}