lwille/node-gphoto2 — pull request #47 by lpinca (2013-12-15 15:37:45+00:00)
Title: Fix corrupted image file

In the `Async_CaptureCb` the node buffer is generated by moving data from a previously deallocated memory area.
Deallocation is done by `gp_file_free` which calls `free` on the `file->data` pointer.
This causes `segmentation fault` or fills the buffer with wrong data.

This patch also tested on a Raspberry Pi, should fix the issue.