mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
ensure garbage collector knows about created objects
This commit is contained in:
parent
733fd39417
commit
4bd5e23fff
@ -38,6 +38,23 @@ binding window {
|
||||
internal "JSObject *" location;
|
||||
}
|
||||
|
||||
api mark %{
|
||||
if (private != NULL) {
|
||||
if (private->document != NULL) {
|
||||
JS_CallTracer(trc, private->document, JSTRACE_OBJECT);
|
||||
}
|
||||
if (private->navigator != NULL) {
|
||||
JS_CallTracer(trc, private->navigator, JSTRACE_OBJECT);
|
||||
}
|
||||
if (private->console != NULL) {
|
||||
JS_CallTracer(trc, private->console, JSTRACE_OBJECT);
|
||||
}
|
||||
if (private->location != NULL) {
|
||||
JS_CallTracer(trc, private->location, JSTRACE_OBJECT);
|
||||
}
|
||||
}
|
||||
%}
|
||||
|
||||
api global %{
|
||||
%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user