mirror of https://github.com/lukechilds/node.git
Browse Source
dispose() free's the memory when executed and sets the external array data to NULL and length to zero. To prevent the same memory from being free'd twice when the object is garbage collected we first check if the object's external array data length == 0. Since alloc() passes NULL to SetIndexedPropertiesToExternalArrayData() if length == 0 there's no opportunity for memory leak.archived-io.js-v0.10
Trevor Norris
11 years ago
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue