Commit 45263e33 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Fix nsevent leak in create_document_event.

parent f869c8e7
......@@ -3253,6 +3253,7 @@ HRESULT create_document_event(HTMLDocumentNode *doc, eventid_t event_id, DOMEven
}
event = alloc_event(nsevent, doc->document_mode, event_info[event_id].type, event_id);
nsIDOMEvent_Release(nsevent);
if(!event)
return E_OUTOFMEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment