| Index: core/src/fxcodec/lgif/fx_gif.cpp
|
| diff --git a/core/src/fxcodec/lgif/fx_gif.cpp b/core/src/fxcodec/lgif/fx_gif.cpp
|
| index 08c1803e8ac7d26f09473b75029f9c0ac01057b4..bc6109e88eed220ce7cea980d521293899ac1686 100644
|
| --- a/core/src/fxcodec/lgif/fx_gif.cpp
|
| +++ b/core/src/fxcodec/lgif/fx_gif.cpp
|
| @@ -1147,7 +1147,7 @@ static FX_BOOL _gif_write_header( gif_compress_struct_p gif_ptr, FX_LPBYTE& dst_
|
| return TRUE;
|
| }
|
| dst_len = sizeof(GifHeader) + sizeof(GifLSD) + sizeof(GifGF);
|
| - dst_buf = FX_AllocNL(FX_BYTE, dst_len);
|
| + dst_buf = FX_TryAlloc(FX_BYTE, dst_len);
|
| if (dst_buf == NULL) {
|
| return FALSE;
|
| }
|
|
|