This commit is contained in:
Alexey Milovidov 2016-02-23 06:21:44 +03:00
commit 86a6884344

View File

@ -41,6 +41,8 @@ private:
PODArray<char> compressed_buffer;
#ifdef USE_QUICKLZ
qlz_state_compress * qlz_state;
#else
void * dirty_hack_to_ensure_the_same_size_of_the_structure = nullptr;
#endif
void nextImpl()
@ -186,7 +188,8 @@ public:
}
#ifdef USE_QUICKLZ
delete qlz_state;
if (qlz_state) /// It can be zero if it is actually dirty_hack_to_ensure_the_same_size_of_the_structure //_-)
delete qlz_state;
#endif
}
};