Fix workers sample (#1196)

This commit is contained in:
Nikolay Igotti
2017-12-27 21:31:21 +03:00
committed by GitHub
parent c2d067924d
commit 4231441e81
+1
View File
@@ -1248,6 +1248,7 @@ OBJ_GETTER(AdoptStablePointer, KNativePtr pointer) {
__sync_synchronize();
#endif
KRef ref = reinterpret_cast<KRef>(pointer);
UpdateRef(OBJ_RESULT, nullptr);
// Somewhat hacky.
*OBJ_RESULT = ref;
return ref;