diff options
Diffstat (limited to '')
-rw-r--r-- | src/bzip2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bzip2.cpp b/src/bzip2.cpp index 66786e4..fbe5712 100644 --- a/src/bzip2.cpp +++ b/src/bzip2.cpp | |||
@@ -33,6 +33,8 @@ size_t Bu::BZip2::stop() | |||
33 | if( bReading ) | 33 | if( bReading ) |
34 | { | 34 | { |
35 | BZ2_bzDecompressEnd( &bzState ); | 35 | BZ2_bzDecompressEnd( &bzState ); |
36 | delete[] pBuf; | ||
37 | pBuf = NULL; | ||
36 | return 0; | 38 | return 0; |
37 | } | 39 | } |
38 | else | 40 | else |
@@ -53,6 +55,8 @@ size_t Bu::BZip2::stop() | |||
53 | break; | 55 | break; |
54 | } | 56 | } |
55 | BZ2_bzCompressEnd( &bzState ); | 57 | BZ2_bzCompressEnd( &bzState ); |
58 | delete[] pBuf; | ||
59 | pBuf = NULL; | ||
56 | return sTotal; | 60 | return sTotal; |
57 | } | 61 | } |
58 | } | 62 | } |