aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/capture.c b/capture.c
index 637711e8f8..951b02114b 100644
--- a/capture.c
+++ b/capture.c
@@ -326,9 +326,10 @@ capture_input_closed(capture_options *capture_opts)
}
/* We're not doing a capture any more, so we don't have a save file. */
- g_assert(capture_opts->save_file);
- g_free(capture_opts->save_file);
- capture_opts->save_file = NULL;
+ if(capture_opts->save_file) {
+ g_free(capture_opts->save_file);
+ capture_opts->save_file = NULL;
+ }
}