diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-04 21:40:05 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-01-05 13:55:04 +0000 |
commit | 22b4ec91c006fec65e655ccbb0dbbc32438f820b (patch) | |
tree | 033dc9de28b8a79550a4dd769fcfb249df4be38c /ui/qt/lbm_uimflow_dialog.cpp | |
parent | 9a7318a184e25e08d1c8449e3f826e0a5c66ca3b (diff) | |
download | wireshark-22b4ec91c006fec65e655ccbb0dbbc32438f820b.tar.gz |
Replace ep_display_to_address with wmem equivalent display_to_address.
Almost all instances require using "manual" memory management, but it gets some ep_ calls out of the GUI.
Change-Id: Ifa7303766b08d09442ccf3d7063cbe061578ecd9
Reviewed-on: https://code.wireshark.org/review/6318
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/lbm_uimflow_dialog.cpp')
-rw-r--r-- | ui/qt/lbm_uimflow_dialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/lbm_uimflow_dialog.cpp b/ui/qt/lbm_uimflow_dialog.cpp index b4bdb6aa41..010ff90afd 100644 --- a/ui/qt/lbm_uimflow_dialog.cpp +++ b/ui/qt/lbm_uimflow_dialog.cpp @@ -505,6 +505,7 @@ void LBMUIMFlowDialog::fillDiagram(void) { QCustomPlot * sp = m_ui->sequencePlot; seq_analysis_info_t new_sa; + char* addr_str; new_sa = m_sequence_analysis; new_sa.items = g_queue_new(); @@ -520,11 +521,13 @@ void LBMUIMFlowDialog::fillDiagram(void) m_node_label_width = 0; for (guint i = 0; i < m_sequence_analysis.num_nodes; i++) { - int label_w = vfm.width(ep_address_to_display(&(m_sequence_analysis.nodes[i]))); + addr_str = (char*)address_to_display(NULL, &(m_sequence_analysis.nodes[i])); + int label_w = vfm.width(addr_str); if (m_node_label_width < label_w) { m_node_label_width = label_w; } + wmem_free(NULL, addr_str); } m_node_label_width = (m_node_label_width * 3 / 4) + m_one_em; |