mirror of https://github.com/aria2/aria2
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak * src/GZipDecoder.ccpull/1/head
parent
747e9a0b23
commit
f8b4d0d1bd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue