mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 794494 - Clear the right buffer link when pruning and reversing the list of ArrayBufferViews. r=billm
This commit is contained in:
parent
484cefec2c
commit
644ee82385
@ -551,7 +551,6 @@ ArrayBufferObject::sweepAll(JSRuntime *rt)
|
||||
JSObject **views = GetViewList(&buffer->asArrayBuffer());
|
||||
JS_ASSERT(*views);
|
||||
JSObject *nextBuffer = BufferLink(*views);
|
||||
SetBufferLink(*views, UNSET_BUFFER_LINK);
|
||||
|
||||
// Rebuild the list of views of the ArrayBuffer, discarding dead views
|
||||
JSObject *prevLiveView = NULL;
|
||||
@ -566,6 +565,8 @@ ArrayBufferObject::sweepAll(JSRuntime *rt)
|
||||
view = nextView;
|
||||
}
|
||||
*views = prevLiveView;
|
||||
if (*views)
|
||||
SetBufferLink(*views, UNSET_BUFFER_LINK);
|
||||
|
||||
buffer = nextBuffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user