diff options
-rw-r--r-- | ui/qt/byte_view_tab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp index 9b9c08cdcc..d5018d0f98 100644 --- a/ui/qt/byte_view_tab.cpp +++ b/ui/qt/byte_view_tab.cpp @@ -102,7 +102,9 @@ void ByteViewTab::packetSelectionChanged() if ( ! cap_file_ || ! cap_file_->edt ) return; + // Remove tabs (as these refer to stale tvbs) and free resources. clear(); + qDeleteAll(findChildren<ByteViewText *>()); GSList *src_le; for (src_le = cap_file_->edt->pi.data_src; src_le != NULL; src_le = src_le->next) { |