Skip to content

Commit

Permalink
[FL-3922] Fix JS memory corruption (#3971)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <alleteam@gmail.com>
  • Loading branch information
portasynthinca3 and skotopes authored Oct 31, 2024
1 parent 85e5642 commit 72272b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion applications/system/js_app/modules/js_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ static void js_gpio_get(struct mjs* mjs) {
manager_data->interrupt_semaphore = furi_semaphore_alloc(UINT32_MAX, 0);
manager_data->adc_handle = module->adc_handle;
manager_data->adc_channel = pin_record->channel;
mjs_own(mjs, &manager);
mjs_set(mjs, manager, INST_PROP_NAME, ~0, mjs_mk_foreign(mjs, manager_data));
mjs_set(mjs, manager, "init", ~0, MJS_MK_FN(js_gpio_init));
mjs_set(mjs, manager, "write", ~0, MJS_MK_FN(js_gpio_write));
Expand Down

0 comments on commit 72272b3

Please sign in to comment.