NeilJed / VTFLib

VTFLib is a LGPL open source programming library that provides a C and C++ API for reading and writing Valve VTF and VMT format image files.
GNU Lesser General Public License v2.1
159 stars 52 forks source link

Fix Memory Leak #6

Closed JarosLucky closed 5 years ago

JarosLucky commented 5 years ago

https://github.com/NeilJed/VTFLib/blob/master/VTFLib/VTFFile.cpp#L659-L679

If the result is successful, then the allocated memory is not cleared. This adds deallocate memory if the result is successful.

JarosLucky commented 5 years ago

mistake