fix dmon leak; fix underlings not stopping when overling crashes

This commit is contained in:
2025-07-17 16:32:22 -05:00
parent 13c1e7560a
commit e677832b12
2 changed files with 30 additions and 27 deletions

View File

@@ -111,6 +111,7 @@ JSValue js_dmon_poll(JSContext *js, JSValueConst this_val, int argc, JSValueCons
JS_SetPropertyStr(js, jsevent, "file", JS_NewString(js, event.filepath));
JS_SetPropertyStr(js, jsevent, "old", JS_NewString(js, event.oldfilepath));
JS_Call(js, argv[0], JS_NULL, 1, &jsevent);
JS_FreeValue(js, jsevent);
}
return JS_NULL;
}