fix prosperon layout

This commit is contained in:
2026-02-20 21:23:21 -06:00
parent e78faccab8
commit ff2e4bd578
44 changed files with 17 additions and 18 deletions

View File

@@ -110,7 +110,7 @@ static JSValue js_mersenne_use_call(JSContext *js, JSValueConst new_target, int
}
}
MTRand *mrand = js_malloc(js, sizeof(MTRand));
MTRand *mrand = js_malloc_rt(sizeof(MTRand));
if (!mrand) return JS_ThrowOutOfMemory(js);
m_seedRand(mrand, seed);
@@ -118,7 +118,7 @@ static JSValue js_mersenne_use_call(JSContext *js, JSValueConst new_target, int
JS_FRAME(js);
JS_ROOT(obj, JS_NewObjectClass(js, js_mersenne_class_id));
if (JS_IsException(obj.val)) {
js_free(js, mrand);
js_free_rt(mrand);
JS_RETURN_EX();
}