You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The memory leak in question is the generation of new data for the resizing of the image data, but instead of getting rid of the old data, it sets a new memory address without clearing the old one first. This is also UB as the image data is not VTFLib's to mutate, it should be copied and disposed of at the end.
The text was updated successfully, but these errors were encountered:
https://github.com/NeilJed/VTFLib/blob/main/VTFLib/VTFFile.cpp#L661-L677
The memory leak in question is the generation of new data for the resizing of the image data, but instead of getting rid of the old data, it sets a new memory address without clearing the old one first. This is also UB as the image data is not VTFLib's to mutate, it should be copied and disposed of at the end.
The text was updated successfully, but these errors were encountered: