aboutsummaryrefslogtreecommitdiffstats
path: root/scan_scr.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scan_scr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/scan_scr.c b/scan_scr.c
index 6373b6a..51d0285 100644
--- a/scan_scr.c
+++ b/scan_scr.c
@@ -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);
}