diff options
author | Dario Lombardo <lomato@gmail.com> | 2021-01-14 13:56:29 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-01-14 13:38:53 +0000 |
commit | 60414fa60ff14861d2d99283fec5ba59f6749df1 (patch) | |
tree | 158e262b62541595559e070b2653c23a10d734b2 /ui/qt/models/decode_as_delegate.cpp | |
parent | 238446dc91cd39bbe56d8aea2bb0f782399f77a6 (diff) |
Revert "Qt: fix memleak in DecodeAsDelegate."
This reverts commit dd13766fb9ed1dfbf4058f822ff42eb091db7109.
Diffstat (limited to 'ui/qt/models/decode_as_delegate.cpp')
-rw-r--r-- | ui/qt/models/decode_as_delegate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/models/decode_as_delegate.cpp b/ui/qt/models/decode_as_delegate.cpp index 476ab43583..c2c5dc461b 100644 --- a/ui/qt/models/decode_as_delegate.cpp +++ b/ui/qt/models/decode_as_delegate.cpp @@ -125,7 +125,7 @@ void DecodeAsDelegate::decodeAddProtocol(const gchar *, const gchar *proto_name, if (!proto_list) return; - dissector_info_t *dissector_info = new dissector_info_t(); + dissector_info_t *dissector_info = new dissector_info_t(); dissector_info->proto_name = proto_name; dissector_info->dissector_handle = (dissector_handle_t) value; @@ -274,7 +274,6 @@ QWidget* DecodeAsDelegate::createEditor(QWidget *parentWidget, const QStyleOptio for (protocol = protocols.begin(); protocol != protocols.end(); ++protocol) { cb_editor->addItem(protocol.key(), VariantPointer<dissector_info_t>::asQVariant(protocol.value())); - delete *protocol; } //Make sure the combo box is at least as wide as the column |