summaryrefslogtreecommitdiff
path: root/thirdparty/etc2comp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-03 15:06:34 +0100
committerGitHub <noreply@github.com>2018-03-03 15:06:34 +0100
commitcbb4fe45d039ad16abe992d2212011c260d6ac17 (patch)
tree0fede6f8b5e0e6300c1f03de1aeb3ddb6a9ef5e1 /thirdparty/etc2comp
parent973d4753a287306706dc2535958771074941bb7e (diff)
parent7c0da76402a6b53237ecec34757f686d2fac642b (diff)
Merge pull request #17035 from Chaosus/fixleaks
Fix memory leaks
Diffstat (limited to 'thirdparty/etc2comp')
-rw-r--r--thirdparty/etc2comp/EtcFilter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/thirdparty/etc2comp/EtcFilter.cpp b/thirdparty/etc2comp/EtcFilter.cpp
index bc899a533e..1ec8acdf3f 100644
--- a/thirdparty/etc2comp/EtcFilter.cpp
+++ b/thirdparty/etc2comp/EtcFilter.cpp
@@ -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;
}