summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/codec/IfegDecodeAGIF.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/codec/IfegDecodeAGIF.c b/src/codec/IfegDecodeAGIF.c
index 39a7fd4..34e6326 100755
--- a/src/codec/IfegDecodeAGIF.c
+++ b/src/codec/IfegDecodeAGIF.c
@@ -903,10 +903,6 @@ int __FastImgGetNextFrameAGIF_NoBuffer(AGifFrameInfo *pFrameData, BOOL bCenterAl
}
decoderline = (unsigned char *)IfegMemAlloc(orgwdt);
if (!decoderline) {
- if (decoderline != 0) {
- IfegMemFree(decoderline);
- decoderline = 0;
- }
if (pDecBuf != 0) {
IfegMemFree(pDecBuf);
pDecBuf = 0;
@@ -943,10 +939,6 @@ int __FastImgGetNextFrameAGIF_NoBuffer(AGifFrameInfo *pFrameData, BOOL bCenterAl
IfegMemFree(decoderline);
decoderline = 0;
}
- if (pDecBuf != 0) {
- IfegMemFree(pDecBuf);
- pDecBuf = 0;
- }
IfegMemFree(done_prefix);
done_prefix = 0;
return 0;
@@ -2033,10 +2025,6 @@ int __FastImgGetNextFrameAGIF_UseBuffer(AGifFrameInfo *pFrameData, BOOL bCenterA
}
decoderline = (unsigned char *)IfegMemAlloc(orgwdt);
if (!decoderline) {
- if (decoderline != 0) {
- IfegMemFree(decoderline);
- decoderline = 0;
- }
if (pDecBuf != 0) {
IfegMemFree(pDecBuf);
pDecBuf = 0;