aboutsummaryrefslogtreecommitdiffstats
path: root/scan_scr.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2018-02-18 21:31:59 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2018-02-18 21:31:59 +0000
commit1fc41b776f712f321c1f355d391c6a5eaf79ebfa (patch)
treed8f3b16ac8fef459fa99e423670e9d00b9ae7bdf /scan_scr.c
parent5744c3a0214950433c3a4375798c1c8eba1b398c (diff)
downloadwavemon-1fc41b776f712f321c1f355d391c6a5eaf79ebfa.tar.gz
New upstream version 0.8.2upstream/0.8.2
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);
}