summaryrefslogtreecommitdiff
blob: 96036dd629e96b22bb5b3ee3f787a39c4972e734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -190,7 +190,9 @@
 #endif
 
    pthread_mutex_destroy(&terms->admin_listen_th.finished);
+#ifdef HAS_CURSES
    pthread_mutex_destroy(&terms->gui_th.finished);
+#endif
    pthread_mutex_destroy(&terms->pcap_listen_th.finished);
    pthread_mutex_destroy(&terms->uptime_th.finished);