diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2018-02-18 21:31:59 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2018-02-18 21:31:59 +0000 |
commit | 1fc41b776f712f321c1f355d391c6a5eaf79ebfa (patch) | |
tree | d8f3b16ac8fef459fa99e423670e9d00b9ae7bdf /scan_scr.c | |
parent | 5744c3a0214950433c3a4375798c1c8eba1b398c (diff) | |
download | wavemon-1fc41b776f712f321c1f355d391c6a5eaf79ebfa.tar.gz |
New upstream version 0.8.2upstream/0.8.2
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); } |