mshtml: Fix nsevent leak in create_document_event.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
parent
f869c8e7a3
commit
45263e333c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue