From 6aa49afc14b5e0d2d0b9180d4812593543428ad8 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 15 Sep 2008 10:44:43 +0000 Subject: [PATCH] set fScanLine to NULL after freeing it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27518 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/gif/GIFLoad.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/translators/gif/GIFLoad.cpp b/src/add-ons/translators/gif/GIFLoad.cpp index c097a80265..5e9b20677b 100644 --- a/src/add-ons/translators/gif/GIFLoad.cpp +++ b/src/add-ons/translators/gif/GIFLoad.cpp @@ -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;