Data allocated with new[] and accessed through a pointer is not deleted, but if, instead, you declare a vector:Originally Posted by portnov
your memory will be cleaned up for you.Code:std::vector<Byte> uncompr(g_uncomprLen);
Hope that helps.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |