203053 - crash on download. Didn't get quite all the changes from the trunk necessary. (Checking in bz's patch to http://bugzilla.mozilla.org/show_bug.cgi?id=188877 )

This commit is contained in:
ben%netscape.com 2003-04-26 04:28:11 +00:00
Родитель 064ff5e88d
Коммит b863e58549
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1018,6 +1018,12 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
if (aStateFlags & STATE_START)
mStartTime = PR_Now();
// When we break the ref cycle with mPersist, we don't want to lose
// access to out member vars!
nsCOMPtr<nsIDownload> kungFuDeathGrip;
CallQueryInterface(this, NS_STATIC_CAST(nsIDownload**,
getter_AddRefs(kungFuDeathGrip)));
if (mListener)
mListener->OnStateChange(aWebProgress, aRequest, aStateFlags, aStatus);