diff options
Diffstat (limited to 'ui/qt/endpoint_dialog.cpp')
-rw-r--r-- | ui/qt/endpoint_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<EndpointTreeWidget *>(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 |