do not .release() in function call; execution order is undefined

This commit is contained in:
Konstantin Käfer
2015-02-13 15:09:32 -08:00
parent a30a377851
commit b1deba8d95
2 changed files with 3 additions and 2 deletions

View File

@@ -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);