From 2c7d6b741ef0fa06c9919d10c47addb1169e8769 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Thu, 28 Mar 2002 21:33:47 +0000 Subject: [PATCH] Fixing leak in the Tester plugin, not part of the build. git-svn-id: svn://10.0.0.236/trunk@117696 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/tools/tester/common/np_entry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/modules/plugin/tools/tester/common/np_entry.cpp b/mozilla/modules/plugin/tools/tester/common/np_entry.cpp index 685403fd376..fe65e5c90a7 100644 --- a/mozilla/modules/plugin/tools/tester/common/np_entry.cpp +++ b/mozilla/modules/plugin/tools/tester/common/np_entry.cpp @@ -51,6 +51,10 @@ NPNetscapeFuncs NPNFuncs; NPError OSCALL NP_Shutdown() { + if (pLogger) { + delete pLogger; + pLogger = NULL; + } return NPERR_NO_ERROR; }