We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e18482b + 27d5135 commit bc75829Copy full SHA for bc75829
src/sqlitejs.c
@@ -205,8 +205,10 @@ static globaljs_context *globaljs_init (sqlite3 *db) {
205
static void globaljs_free (globaljs_context *js) {
206
if (!js) return;
207
208
- if (js->runtime) JS_FreeRuntime(js->runtime);
+ // order matters
209
+ if (js->runtime) js_std_free_handlers(js->runtime);
210
if (js->context) JS_FreeContext(js->context);
211
+ if (js->runtime) JS_FreeRuntime(js->runtime);
212
sqlite3_free(js);
213
}
214
0 commit comments