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:
Stefano Ceccherini 2008-09-15 10:44:43 +00:00
parent a50feb079d
commit 6aa49afc14

View File

@ -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;