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
157 stars 50 forks source link

Fix memory leak #7

Closed JarosLucky closed 4 years ago

JarosLucky commented 4 years ago

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

NeilJed commented 4 years ago

Thanks @JarosLucky!