diff --git a/src/node_map.cpp b/src/node_map.cpp index 8a0634a90..d8b3d3e70 100644 --- a/src/node_map.cpp +++ b/src/node_map.cpp @@ -248,9 +248,9 @@ void NodeMap::renderFinished() { // Retain the StillImage object until the buffer is deleted. [](char *, void *hint) { - delete reinterpret_cast *>(hint); + delete reinterpret_cast(hint); }, - new std::unique_ptr(std::move(img)) + const_cast(img.release()) ); result->Set(NanNew("pixels"), pixels); diff --git a/vendor/mbgl b/vendor/mbgl index 3a6f095e4..590133379 160000 --- a/vendor/mbgl +++ b/vendor/mbgl @@ -1 +1 @@ -Subproject commit 3a6f095e4e05fffb62c70d154a40d55a52912c88 +Subproject commit 5901333797f05ac861b6242f0f9d7edf0875b5cd