aboutsummaryrefslogtreecommitdiffstats
path: root/wireshark-qt.cpp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-02-02 16:00:49 -0800
committerGuy Harris <guy@alum.mit.edu>2017-02-03 00:01:17 +0000
commit14fba80f0f478d9c167685ca2be74c72e46d2664 (patch)
treead332233ab91d61e786d963953d7b780a7f429a8 /wireshark-qt.cpp
parent93a5c83f0a6e609ec4ba3e55872f9924d59ba38a (diff)
Fix builds without libpcap.
capture_opts_cleanup() doesn't exist if we're building without libpcap, so don't call it if we're building without libpcap. Change-Id: I6c9defea15fac7df5533269c4945b965d9a67c25 Reviewed-on: https://code.wireshark.org/review/19924 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r--wireshark-qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp
index 6f52e4b..827171a 100644
--- a/wireshark-qt.cpp
+++ b/wireshark-qt.cpp
@@ -943,7 +943,9 @@ int main(int argc, char *qt_argv[])
#endif /* _WIN32 */
clean_exit:
+#ifdef HAVE_LIBPCAP
capture_opts_cleanup(&global_capture_opts);
+#endif
return ret_val;
}