fixed crash when clicking on the serial device checkbox while the serial

device is not configured (closing issue #18).
pull/24/head
John Tsiombikas 2022-04-26 17:20:25 +03:00
rodzic 6dc5f9c5c8
commit 7316c7a58c
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -464,7 +464,8 @@ void MainWin::chk_changed(int checked)
}
if(src == ui->chk_serial) {
*cfg.serdev = 0;
free(cfg.serdev);
cfg.serdev = 0;
spnav_cfg_set_serial(cfg.serdev);
}