Guard closing capture window with ifdef.

That variable is only defined if we HAVE_LIBPCAP. Should fix OSX10.5 buildbot.

Change-Id: I0bafc48955ef4af3c0b8d9d7a35b1e8b27577d31
Reviewed-on: https://code.wireshark.org/review/1669
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2014-05-17 08:05:35 -04:00
parent 8129c2d13d
commit 25ba4a2a44
1 changed files with 2 additions and 0 deletions

View File

@ -409,7 +409,9 @@ void MainWindow::closeEvent(QCloseEvent *event) {
return;
}
#ifdef HAVE_LIBPCAP
capture_interfaces_dialog_.close();
#endif
// Make sure we kill any open dumpcap processes.
delete main_welcome_;