diff options
author | Chaosus <chaosus89@gmail.com> | 2018-02-26 12:47:58 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2018-03-03 09:11:26 +0300 |
commit | 7c0da76402a6b53237ecec34757f686d2fac642b (patch) | |
tree | ec4e66f3f4b62a827b62a91c33962c115a60c9e1 /thirdparty/etc2comp | |
parent | 7568a455397aeefc1e08600534ec4df279abab70 (diff) |
Fix 3 memory leaks
Diffstat (limited to 'thirdparty/etc2comp')
-rw-r--r-- | thirdparty/etc2comp/EtcFilter.cpp | 3 |
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; } |