diff options
Diffstat (limited to '')
-rw-r--r-- | scan_scr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -203,7 +203,7 @@ void scr_aplst_init(void) mvwaddstr(w_aplst, START_LINE, 1, "Waiting for scan data ..."); wrefresh(w_aplst); - scan_result_init(&sr); + init_scan_list(&sr); pthread_create(&scan_thread, NULL, do_scan, &sr); } @@ -251,6 +251,8 @@ int scr_aplst_loop(WINDOW *w_menu) void scr_aplst_fini(void) { pthread_cancel(scan_thread); - scan_result_fini(&sr); + free_scan_list(sr.head); + free(sr.channel_stats); + delwin(w_aplst); } |