diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2014-11-06 11:19:25 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2014-11-10 08:01:12 +0000 |
commit | ea167053ffc553b3a5f4ce6cbe0b78ecc8cd0dbe (patch) | |
tree | ceac2e98230e01eaf207a51ab98bd57afdddcead /ui/qt/wireshark_application.h | |
parent | d58567bd78abc1903191c9a955365b8d41f09496 (diff) |
Improved deregistering fields.
This improvement avoids use of deallocated memory (crash) if using a
deregistered field in display filter, color filter, custom column and
other cases when the field is used as "interesting field".
This functionality is currently used in http, imf and ldap preferences.
Also removed unused proto_registrar_n() as this does not work correctly
after deregistering fields.
Change-Id: I043e3bf7a98bd773c9801e712a012d1eab8a7f94
Reviewed-on: https://code.wireshark.org/review/5161
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index a6764cf137..981dc8e74c 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -70,7 +70,8 @@ public: FilterExpressionsChanged, PacketDissectionChanged, PreferencesChanged, - StaticRecentFilesRead + StaticRecentFilesRead, + FieldsChanged }; void registerUpdate(register_action_e action, const char *message); @@ -127,6 +128,7 @@ signals: void packetDissectionChanged(); void preferencesChanged(); void addressResolutionChanged(); + void fieldsChanged(); // XXX It might make more sense to move these to main.cpp or main_window.cpp or their own class. void captureCapturePrepared(capture_session *cap_session); |