From 403be722cee0aa78b6c57b7e61c35d2d59780713 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 17 Jan 2015 20:34:35 -0500 Subject: Remove emem from GeoIP Change-Id: Ifa96dc38a277b86c28f762489251dcc595afae67 Reviewed-on: https://code.wireshark.org/review/6603 Reviewed-by: Michael Mann --- ui/qt/endpoint_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/qt/endpoint_dialog.cpp') diff --git a/ui/qt/endpoint_dialog.cpp b/ui/qt/endpoint_dialog.cpp index 615298dc30..478936d60c 100644 --- a/ui/qt/endpoint_dialog.cpp +++ b/ui/qt/endpoint_dialog.cpp @@ -267,7 +267,7 @@ public: EndpointTreeWidget *ep_tree = qobject_cast(treeWidget()); if (ep_tree) { for (int col = ENDP_NUM_COLUMNS; col < ep_tree->columnCount(); col++) { - const char *col_text = NULL; + char *col_text = NULL; foreach (unsigned db, ep_tree->columnToDb(col)) { if (endp_item->myaddress.type == AT_IPv4) { col_text = geoip_db_lookup_ipv4(db, pntoh32(endp_item->myaddress.data), NULL); @@ -280,6 +280,7 @@ public: } } setText(col, col_text ? col_text : geoip_none_); + wmem_free(NULL, col_text); } } #endif -- cgit v1.2.1