mirror of
https://github.com/aria2/aria2.git
synced 2025-02-08 15:08:19 +00:00
2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed memory leak * src/GZipDecoder.cc
This commit is contained in:
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…
x
Reference in New Issue
Block a user