mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1082145
- |js::WatchGuts| can leak |wpmap|. r=erahm
This commit is contained in:
parent
58a227ed02
commit
e0664236e3
@ -3240,6 +3240,7 @@ js::WatchGuts(JSContext* cx, JS::HandleObject origObj, JS::HandleId id, JS::Hand
|
||||
wpmap = cx->runtime()->new_<WatchpointMap>();
|
||||
if (!wpmap || !wpmap->init()) {
|
||||
ReportOutOfMemory(cx);
|
||||
js_delete(wpmap);
|
||||
return false;
|
||||
}
|
||||
cx->compartment()->watchpointMap = wpmap;
|
||||
|
Loading…
Reference in New Issue
Block a user