set fScanLine to NULL after freeing it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27518 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -49,7 +49,8 @@ GIFLoad::GIFLoad(BPositionIO *input, BPositionIO *output)
|
|||||||
} else {
|
} else {
|
||||||
if (debug) printf("GIFLoad::GIFLoad() - Found a single image and leaving\n");
|
if (debug) printf("GIFLoad::GIFLoad() - Found a single image and leaving\n");
|
||||||
}
|
}
|
||||||
if (fScanLine != NULL) free(fScanLine);
|
free(fScanLine);
|
||||||
|
fScanLine = NULL;
|
||||||
return;
|
return;
|
||||||
} else if (c == 0x21) {
|
} else if (c == 0x21) {
|
||||||
unsigned char d;
|
unsigned char d;
|
||||||
|
|||||||
Reference in New Issue
Block a user