зеркало из https://github.com/mozilla/pjs.git
Bug 304680: Fix shutdown crash by giving nsDownload an owning ref to nsDownloadManager. r=biesi
This commit is contained in:
Родитель
f180539329
Коммит
cfbd506bab
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче