mshtml: Don't do anything in handle_htmlevent if document is already detached.

This commit is contained in:
Jacek Caban 2012-09-20 15:05:07 +02:00 committed by Alexandre Julliard
parent e374449e30
commit 481abdb304

View file

@ -288,6 +288,11 @@ static nsresult NSAPI handle_htmlevent(nsIDOMEventListener *iface, nsIDOMEvent *
TRACE("%p\n", This->This);
if(!doc) {
WARN("NULL doc\n");
return NS_OK;
}
nsAString_Init(&type_str, NULL);
nsIDOMEvent_GetType(event, &type_str);
nsAString_GetData(&type_str, &type);