Closed minggangw closed 7 years ago
Currently, the framedata is freed by the C++ side in the deconstruction:
FrameData::~FrameData() { free(data_.data); }
This will lead to freeing the memory twice, because the ownership of the data will be transferred to Nan::NewBuffer later.
Currently, the framedata is freed by the C++ side in the deconstruction:
This will lead to freeing the memory twice, because the ownership of the data will be transferred to Nan::NewBuffer later.