Blame wireshark-1.8.x-capture-crash.patch
|
Peter Hatina |
f0c20e |
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
|
|
Peter Hatina |
f0c20e |
index f0d1115..db165f1 100644
|
|
Peter Hatina |
f0c20e |
--- a/ui/gtk/capture_dlg.c
|
|
Peter Hatina |
f0c20e |
+++ b/ui/gtk/capture_dlg.c
|
|
Peter Hatina |
f0c20e |
@@ -4206,6 +4206,10 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_)
|
|
Peter Hatina |
f0c20e |
airpcap_set_toolbar_start_capture(airpcap_if_active);
|
|
Peter Hatina |
f0c20e |
#endif
|
|
Peter Hatina |
f0c20e |
|
|
Peter Hatina |
f0c20e |
+ /* XXX - will closing this remove a temporary file? */
|
|
Peter Hatina |
f0c20e |
+ if (!do_file_close(&cfile, FALSE, " before starting a new capture"))
|
|
Peter Hatina |
f0c20e |
+ return;
|
|
Peter Hatina |
f0c20e |
+
|
|
Peter Hatina |
f0c20e |
if (cap_open_w) {
|
|
Peter Hatina |
f0c20e |
/*
|
|
Peter Hatina |
f0c20e |
* There's an options dialog; get the values from it and close it.
|
|
Peter Hatina |
f0c20e |
@@ -4230,9 +4234,7 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_)
|
|
Peter Hatina |
f0c20e |
return;
|
|
Peter Hatina |
f0c20e |
}
|
|
Peter Hatina |
f0c20e |
|
|
Peter Hatina |
f0c20e |
- /* XXX - will closing this remove a temporary file? */
|
|
Peter Hatina |
f0c20e |
- if (do_file_close(&cfile, FALSE, " before starting a new capture"))
|
|
Peter Hatina |
f0c20e |
- capture_start_confirmed();
|
|
Peter Hatina |
f0c20e |
+ capture_start_confirmed();
|
|
Peter Hatina |
f0c20e |
}
|
|
Peter Hatina |
f0c20e |
|
|
Peter Hatina |
f0c20e |
|