diff options
| author | Rémi Verschelde | 2018-03-03 15:06:34 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-03 15:06:34 +0100 |
| commit | cbb4fe45d039ad16abe992d2212011c260d6ac17 (patch) | |
| tree | 0fede6f8b5e0e6300c1f03de1aeb3ddb6a9ef5e1 /thirdparty/etc2comp/EtcFilter.cpp | |
| parent | 973d4753a287306706dc2535958771074941bb7e (diff) | |
| parent | 7c0da76402a6b53237ecec34757f686d2fac642b (diff) | |
| download | godot-cbb4fe45d039ad16abe992d2212011c260d6ac17.tar.gz godot-cbb4fe45d039ad16abe992d2212011c260d6ac17.tar.zst godot-cbb4fe45d039ad16abe992d2212011c260d6ac17.zip | |
Diffstat (limited to 'thirdparty/etc2comp/EtcFilter.cpp')
| -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 bc899a533..1ec8acdf3 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; } |
