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:
parent
a50feb079d
commit
6aa49afc14
@ -49,7 +49,8 @@ GIFLoad::GIFLoad(BPositionIO *input, BPositionIO *output)
|
||||
} else {
|
||||
if (debug) printf("GIFLoad::GIFLoad() - Found a single image and leaving\n");
|
||||
}
|
||||
if (fScanLine != NULL) free(fScanLine);
|
||||
free(fScanLine);
|
||||
fScanLine = NULL;
|
||||
return;
|
||||
} else if (c == 0x21) {
|
||||
unsigned char d;
|
||||
|
Loading…
Reference in New Issue
Block a user