Fix workers sample (#1196)
This commit is contained in:
@@ -1248,6 +1248,7 @@ OBJ_GETTER(AdoptStablePointer, KNativePtr pointer) {
|
|||||||
__sync_synchronize();
|
__sync_synchronize();
|
||||||
#endif
|
#endif
|
||||||
KRef ref = reinterpret_cast<KRef>(pointer);
|
KRef ref = reinterpret_cast<KRef>(pointer);
|
||||||
|
UpdateRef(OBJ_RESULT, nullptr);
|
||||||
// Somewhat hacky.
|
// Somewhat hacky.
|
||||||
*OBJ_RESULT = ref;
|
*OBJ_RESULT = ref;
|
||||||
return ref;
|
return ref;
|
||||||
|
|||||||
Reference in New Issue
Block a user