Quote Originally Posted by portnov
As far as i know any data used by function is deleted upon exit so there is no need to use "delete [] uncompr ;".
Data allocated with new[] and accessed through a pointer is not deleted, but if, instead, you declare a vector:
Code:
std::vector<Byte> uncompr(g_uncomprLen);
your memory will be cleaned up for you.

Hope that helps.