From 06a4635e5058ccf34408ecee876a0165375951cd Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 17:12:48 +0000 Subject: [PATCH] r=bryner. Fix memory leaking of result nodes. Added virtual destructor to the result node so that the result node's base relase implementation would also delete the derived classes. Original committer: brettw%gmail.com Original revision: 1.16 Original date: 2006/02/17 23:13:53 --- toolkit/components/places/src/nsNavHistoryResult.h | 1 + 1 file changed, 1 insertion(+) diff --git a/toolkit/components/places/src/nsNavHistoryResult.h b/toolkit/components/places/src/nsNavHistoryResult.h index 21d05607d4d..d9ed5393927 100644 --- a/toolkit/components/places/src/nsNavHistoryResult.h +++ b/toolkit/components/places/src/nsNavHistoryResult.h @@ -154,6 +154,7 @@ public: nsNavHistoryResultNode(const nsACString& aURI, const nsACString& aTitle, PRUint32 aAccessCount, PRTime aTime, const nsACString& aIconURI); + virtual ~nsNavHistoryResultNode() {} #ifdef MOZILLA_1_8_BRANCH NS_DEFINE_STATIC_IID_ACCESSOR(NS_NAVHISTORYRESULTNODE_IID)