зеркало из https://github.com/mozilla/gecko-dev.git
Just some sanity checking on the emitter object
This commit is contained in:
Родитель
2ed21cb951
Коммит
54408fc8c9
|
@ -314,10 +314,11 @@ nsresult MimePluginInstance::InternalCleanup(void)
|
|||
// Now complete the emitter and do necessary cleanup!
|
||||
//
|
||||
printf("TOTAL READ = %d\n", mTotalRead);
|
||||
mEmitter->Complete();
|
||||
|
||||
if (mEmitter)
|
||||
{
|
||||
mEmitter->Complete();
|
||||
mEmitter->Release();
|
||||
}
|
||||
|
||||
PR_FREEIF(mOutputFormat);
|
||||
PR_FREEIF(mURL);
|
||||
|
@ -373,7 +374,8 @@ char *output = "\
|
|||
</HTML>";
|
||||
|
||||
sprintf(outBuf, output, mURL, mURL);
|
||||
mEmitter->Write(outBuf, PL_strlen(outBuf), &written);
|
||||
if (mEmitter)
|
||||
mEmitter->Write(outBuf, PL_strlen(outBuf), &written);
|
||||
mTotalRead += written;
|
||||
return -1;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче