Skip to content

Commit

Permalink
examples/step_counter: Minor fix for instance deletion
Browse files Browse the repository at this point in the history
Change the function `free` to `delete`.
  • Loading branch information
SPRESENSE committed Mar 29, 2022
1 parent 14f1837 commit 254984c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/step_counter/accel_sensor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static FAR void *accel_sensor_entry(pthread_addr_t arg)

/* Free instance of AccelSensorClass. */

free(instance);
delete(instance);

return (void *)&s_sensor_entry_result;
}
Expand Down

0 comments on commit 254984c

Please sign in to comment.