paixaop/node-sodium — pull request #20 by rvagg (2014-07-18 03:10:23+00:00)
Title: Create Local handle for new Buffers to avoid GC

fixes #19

The lack of a `Local` handle inside the `HandleScope` where the new `Buffer` objects are being created means that the GC can kick in while you're still working on them and clean up the handles that were originally created for them. This change introduces explicit handles each time you `Buffer::New()` which will automatically be assigned to the `HandleScope` in use.