Qt: fix memleak in PacketList::contextMenuEvent
authorPeter Wu <peter@lekensteyn.nl>
Sat, 26 May 2018 12:06:18 +0000 (14:06 +0200)
committerAnders Broman <a.broman58@gmail.com>
Wed, 30 May 2018 08:19:06 +0000 (08:19 +0000)
Change-Id: I925d2e1529a70aaf403896a4d7df3f491265916d
Fixes: v1.99.7rc0-225-g26dacfc8c3 ("Qt: Add protocol preferences menus.")
Reviewed-on: https://code.wireshark.org/review/27831
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
ui/qt/packet_list.cpp

index ccf1d79b993b327832efc63fc28e3430c2d595d4..13362fb4f67353048e076610a57fedcbb00e827e 100644 (file)
@@ -498,6 +498,7 @@ void PacketList::contextMenuEvent(QContextMenuEvent *event)
                 break;
             }
         }
+        g_ptr_array_free(finfo_array, TRUE);
     }
     proto_prefs_menu_.setModule(module_name);