From 6a648c8c5be39b2c4f0e5dcec4ace73e6c838faf Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Sat, 28 Jun 2003 23:29:11 +0000 Subject: [PATCH] 211010 Memory leak of 576 bytes from 3 blocks allocated in PR_Malloc r=pavlov sr=tor git-svn-id: svn://10.0.0.236/trunk@144246 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp index 7a54fe50609..3fc742ebdfe 100644 --- a/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp +++ b/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp @@ -21,6 +21,8 @@ * Chris Saari */ +#include "prmem.h" + #include "nsGIFDecoder2.h" #include "nsIInputStream.h" #include "nsIComponentManager.h" @@ -351,7 +353,7 @@ int nsGIFDecoder2::EndImageFrame( } decoder->mImageFrame = nsnull; - decoder->mGIFStruct->local_colormap = nsnull; + PR_FREEIF(decoder->mGIFStruct->local_colormap); decoder->mGIFStruct->is_transparent = PR_FALSE; return 0; }