From db94a44da3a5634030feb14abc168788015f8b24 Mon Sep 17 00:00:00 2001 From: "ben%bengoodger.com" Date: Sun, 29 Feb 2004 02:20:17 +0000 Subject: [PATCH] (215094) - fix leak in CopySmartKeywords - free the INI parser when we're done with it. git-svn-id: svn://10.0.0.236/trunk@153367 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/migration/src/nsOperaProfileMigrator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/browser/components/migration/src/nsOperaProfileMigrator.cpp b/mozilla/browser/components/migration/src/nsOperaProfileMigrator.cpp index 9d4c979ce96..31527784ea1 100644 --- a/mozilla/browser/components/migration/src/nsOperaProfileMigrator.cpp +++ b/mozilla/browser/components/migration/src/nsOperaProfileMigrator.cpp @@ -1082,6 +1082,11 @@ nsOperaProfileMigrator::CopySmartKeywords(nsIBookmarksService* aBMS, getter_AddRefs(itemRes)); } while (1); + + if (parser) { + delete parser; + parser = nsnull; + } return rv; }