mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 503464 - Memory leak in JSScope::drop. r=brendan.
This commit is contained in:
parent
1899603001
commit
72391e700b
@ -246,7 +246,7 @@ JSScope::drop(JSContext *cx, JSObject *obj)
|
|||||||
--nrefs;
|
--nrefs;
|
||||||
|
|
||||||
if (nrefs == 0) {
|
if (nrefs == 0) {
|
||||||
delete this;
|
destroy(cx, this);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (object == obj)
|
if (object == obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user