fix bustage resulting when MOZ_PERF_METRICS is defined

This commit is contained in:
darin%netscape.com 2002-03-06 09:00:05 +00:00
Родитель 844fb9c679
Коммит 38a5c844f3
1 изменённых файлов: 4 добавлений и 6 удалений

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

@ -539,13 +539,11 @@ mCurrent=mTotal=mProgress=mMaxProgress=0;
#ifdef MOZ_PERF_METRICS
if (PR_FALSE == mTimerSet) {
char* url;
nsCAutoString url;
nsresult rv = NS_OK;
rv = uri->GetSpec(&url);
if (NS_SUCCEEDED(rv)) {
MOZ_TIMER_LOG(("*** Timing layout processes on url: '%s', WebBrowserChrome: %p\n", url, this));
delete [] url;
}
rv = uri->GetSpec(url);
if (NS_SUCCEEDED(rv))
MOZ_TIMER_LOG(("*** Timing layout processes on url: '%s', WebBrowserChrome: %p\n", url.get(), this));
MOZ_TIMER_DEBUGLOG(("Reset and start: nsWebBrowserChrome::OnLoadStart(), this=%p\n", this));
MOZ_TIMER_RESET(mTotalTime);
MOZ_TIMER_START(mTotalTime);