Bug 304680: Fix shutdown crash by giving nsDownload an owning ref to nsDownloadManager. r=biesi

This commit is contained in:
ajschult%verizon.net 2006-10-15 17:16:33 +00:00
Родитель f180539329
Коммит cfbd506bab
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -59,6 +59,7 @@
#include "nsIProgressDialog.h"
#include "nsIMIMEInfo.h"
#include "nsISound.h"
#include "nsAutoPtr.h"
enum DownloadState { NOTSTARTED = -1, DOWNLOADING, FINISHED, FAILED, CANCELED };
@ -163,7 +164,7 @@ public:
mLastUpdate = aStartTime;
}
private:
nsDownloadManager* mDownloadManager;
nsRefPtr<nsDownloadManager> mDownloadManager;
nsString mDisplayName;