bug 314091 Fix users of mozAutoDocUpdate to actually declare a local variable,

so that the destructor doesn't get called immediately
r+sr=bz
This commit is contained in:
cbiesinger@web.de
2005-10-29 12:54:24 +00:00
parent e5ee7a3365
commit 876e6e565e
8 changed files with 9 additions and 9 deletions

View File

@@ -979,7 +979,7 @@ nsObjectLoadingContent::NotifyStateChanged(ObjectType aOldType,
PRInt32 changedBits = aOldState ^ newState;
{
mozAutoDocUpdate(doc, UPDATE_CONTENT_STATE, PR_TRUE);
mozAutoDocUpdate upd(doc, UPDATE_CONTENT_STATE, PR_TRUE);
doc->ContentStatesChanged(thisContent, nsnull, changedBits);
}
if (aSync) {