free ac_connected_cmd and ac_disconnected_cmd on cleanup
This commit is contained in:
parent
5b01670a22
commit
eb86d5ac00
1 changed files with 4 additions and 0 deletions
|
@ -168,6 +168,10 @@ void cleanup_battery()
|
|||
battery_uwheel_command = NULL;
|
||||
free(battery_dwheel_command);
|
||||
battery_dwheel_command = NULL;
|
||||
free(ac_connected_cmd);
|
||||
ac_connected_cmd = NULL;
|
||||
free(ac_disconnected_cmd);
|
||||
ac_disconnected_cmd = NULL;
|
||||
stop_timeout(battery_timeout);
|
||||
battery_timeout = NULL;
|
||||
battery_found = 0;
|
||||
|
|
Loading…
Reference in a new issue