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:
benjamin%smedbergs.us 2006-07-18 17:12:48 +00:00
Родитель ca762be797
Коммит 291578db47
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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)