Post

Replies

Boosts

Views

Activity

Xcode 16 JSGlobalContextCreate memory leak
The following has a memory leak on Xcode 16. JSGlobalContextRef _cx = JSGlobalContextCreateInGroup(NULL, NULL); #ifndef NDEBUG #ifdef __IPHONE_16_4 if (__builtin_available(iOS 16.4, *)) { JSGlobalContextSetInspectable(_cx, true); } #endif #endif JSStringRef ctxName = JSStringCreateWithUTF8CString("Xcode16"); JSGlobalContextSetName(_cx, ctxName); JSStringRelease(ctxName); JSGlobalContextRelease(_cx);
2
0
262
Sep ’24