зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
00e0b43c6d
Коммит
06a4635e50
|
@ -154,6 +154,7 @@ public:
|
||||||
nsNavHistoryResultNode(const nsACString& aURI, const nsACString& aTitle,
|
nsNavHistoryResultNode(const nsACString& aURI, const nsACString& aTitle,
|
||||||
PRUint32 aAccessCount, PRTime aTime,
|
PRUint32 aAccessCount, PRTime aTime,
|
||||||
const nsACString& aIconURI);
|
const nsACString& aIconURI);
|
||||||
|
virtual ~nsNavHistoryResultNode() {}
|
||||||
|
|
||||||
#ifdef MOZILLA_1_8_BRANCH
|
#ifdef MOZILLA_1_8_BRANCH
|
||||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_NAVHISTORYRESULTNODE_IID)
|
NS_DEFINE_STATIC_IID_ACCESSOR(NS_NAVHISTORYRESULTNODE_IID)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче