You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fix 3 memory leaks
This commit is contained in:
3
thirdparty/etc2comp/EtcFilter.cpp
vendored
3
thirdparty/etc2comp/EtcFilter.cpp
vendored
@@ -228,6 +228,9 @@ int FilterTwoPass( RGBCOLOR *pSrcImage, int srcWidth, int srcHeight,
|
||||
pTempImage = (RGBCOLOR *)malloc( destWidth * srcHeight * sizeof(RGBCOLOR) );
|
||||
if ( pTempImage == NULL )
|
||||
{
|
||||
// -- GODOT start --
|
||||
free( contrib );
|
||||
// -- GODOT end --
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user