From fb232af27d23cd7ac9f4c294b88774cab68bf333 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Fri, 28 Apr 2006 17:25:47 +0000 Subject: [PATCH] Bug 334716: Ineffective allocation check in nsParserService::CreateEntry (nsParserService.cpp), patch by patch by Ryan Flint , r=mrbkap, sr=jst --- parser/htmlparser/src/nsParserService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/htmlparser/src/nsParserService.cpp b/parser/htmlparser/src/nsParserService.cpp index b8e5ca5507db..24a146f9db59 100644 --- a/parser/htmlparser/src/nsParserService.cpp +++ b/parser/htmlparser/src/nsParserService.cpp @@ -258,7 +258,7 @@ nsParserService::CreateEntry(const nsAString& aTopic, nsObserverEntry** aEntry) { *aEntry = new nsObserverEntry(aTopic); - if (!aEntry) { + if (!*aEntry) { return NS_ERROR_OUT_OF_MEMORY; }