do not .release() in function call; execution order is undefined
This commit is contained in:
@@ -250,8 +250,9 @@ void NodeMap::renderFinished() {
|
||||
[](char *, void *hint) {
|
||||
delete reinterpret_cast<const mbgl::StillImage *>(hint);
|
||||
},
|
||||
const_cast<mbgl::StillImage *>(img.release())
|
||||
const_cast<mbgl::StillImage *>(img.get())
|
||||
);
|
||||
img.release();
|
||||
|
||||
result->Set(NanNew("pixels"), pixels);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user