diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-05-16 12:15:20 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-05-16 20:34:15 +0000 |
commit | 054a7e4606758ebdc8b37cab04da57e5a863cba8 (patch) | |
tree | 88e041d713ea2378f5f67c2538be9979eae77649 /ui/qt/capture_info_dialog.cpp | |
parent | 7612814769ab1ec6298d6ed83299ae5eb4f8f7e4 (diff) |
Qt: Fix a memory leak.
Make sure the Capture Information dialog deletes its UI data.
Change-Id: I2613cfb6ca4b1a72e9fcfaad5a7792d95ab4764c
Reviewed-on: https://code.wireshark.org/review/27588
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_info_dialog.cpp')
-rw-r--r-- | ui/qt/capture_info_dialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/capture_info_dialog.cpp b/ui/qt/capture_info_dialog.cpp index f1fd11045c..72b334d044 100644 --- a/ui/qt/capture_info_dialog.cpp +++ b/ui/qt/capture_info_dialog.cpp @@ -107,6 +107,7 @@ CaptureInfoDialog::CaptureInfoDialog(struct _capture_info *cap_info, struct _cap CaptureInfoDialog::~CaptureInfoDialog() { + delete ui; cap_info_->ui = NULL; } |