Jacek Caban (@jacek) commented about dlls/mshtml/mutation.c:
if(!This->doc_obj) return NS_OK;
- IUnknown_AddRef(This->doc_obj->outer_unk);
Please store doc_obj in a local variable when you need an extra reference. This makes it much easier to follow as otherwise you need to be sure that the pointer didn't change between AddRef and Release. You also need extra reference only around `parse_complete()` call.