diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-06-19 17:42:37 -0400 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-06-19 21:47:04 +0000 |
commit | a32dbae525386fbf2ed14d5d5b982f666ac42219 (patch) | |
tree | 855bdce792004e410dcdbd343e95cfec9594588d /ui | |
parent | b936dbd7eec66459c650e0c6354cb402a3867221 (diff) |
Don't crash when closing the Summary window if the file has been closed.
Yes, this is a Gtk-UI fix but it's a one-liner and easy enough.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8715
Bug: 8715
Change-Id: I554b6c953e83ff3d8cb57029e844f2f481b751dd
Reviewed-on: https://code.wireshark.org/review/2460
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/summary_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c index 473ba17df3..b01a62138e 100644 --- a/ui/gtk/summary_dlg.c +++ b/ui/gtk/summary_dlg.c @@ -138,7 +138,7 @@ summary_ok_cb(GtkWidget *w _U_, GtkWidget *view) GtkTextIter end_iter; gchar *new_comment = NULL; - if (view != NULL) { + if (view != NULL && cfile.filename != NULL) { buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)); gtk_text_buffer_get_start_iter (buffer, &start_iter); gtk_text_buffer_get_end_iter (buffer, &end_iter); |