Fixed some leaked references in nsLivemarkService by changing leaky pointers

to member nsCOMPtrs, updated usage in nsBookmarksFeedHandler.
(Note that Annie copied this code from the non-Places livemark code,
 so this problem likely still exists there.)

bug=333764
r=darin@meer.net
sr=bryner@brianryner.com

Original committer: joe%retrovirus.com
Original revision: 1.10
Original date: 2006/04/12 20:47:30
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 18:06:46 +00:00
Родитель 09e6c6aa76
Коммит 27effc9715
1 изменённых файлов: 13 добавлений и 0 удалений

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

@ -75,6 +75,8 @@
*/
#define LMANNO_BMANNO "livemark/bookmarkFeedURI"
class nsIRDFResource;
class nsLivemarkService : public nsILivemarkService, public nsIObserver
{
public:
@ -118,6 +120,16 @@ public:
nsAutoRefCnt mRefCnt;
};
nsCOMPtr<nsIRDFResource> mLMRDF_type;
nsCOMPtr<nsIRDFResource> mLMRSS09_channel;
nsCOMPtr<nsIRDFResource> mLMRSS09_item;
nsCOMPtr<nsIRDFResource> mLMRSS09_title;
nsCOMPtr<nsIRDFResource> mLMRSS09_link;
nsCOMPtr<nsIRDFResource> mLMRSS10_channel;
nsCOMPtr<nsIRDFResource> mLMRSS10_items;
nsCOMPtr<nsIRDFResource> mLMRSS10_title;
nsCOMPtr<nsIRDFResource> mLMRSS10_link;
nsCOMPtr<nsIRDFResource> mLMDC_date;
private:
static nsLivemarkService *sInstance;
@ -144,4 +156,5 @@ private:
static void FireTimer(nsITimer* aTimer, void* aClosure);
nsresult UpdateLivemarkChildren(PRInt32 aLivemarkIndex, PRBool aForceUpdate);
PRInt32 GetLivemarkIndex(PRInt64 folderID);
};