JS: Fix badusb double free crash with quit()

This commit is contained in:
Willy-JL
2024-04-11 03:33:15 +01:00
parent c02be75868
commit 6c508779e2

View File

@@ -88,6 +88,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) {
}
if(badusb->hid_cfg) {
free(badusb->hid_cfg);
badusb->hid_cfg = NULL;
}
}