summaryrefslogtreecommitdiff
path: root/ui/gtk/lbm_stream_dlg.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-12-21 20:56:33 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2014-12-21 20:47:48 +0000
commit9407160e05ab8031014b1a7db9488b3f0f7e041b (patch)
tree9e9d08f52d888f07435f0bccd173c69512f74f64 /ui/gtk/lbm_stream_dlg.c
parentccf0573fcd24f26f757521d31ca96256869f9ec2 (diff)
downloadwireshark-9407160e05ab8031014b1a7db9488b3f0f7e041b.tar.gz
Do not use packet scoped memory in GUI
It will trigger an assertion Change-Id: I2436c11b45e1505a94256a06ed3ad0c5480e034b Reviewed-on: https://code.wireshark.org/review/5953 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/gtk/lbm_stream_dlg.c')
-rw-r--r--ui/gtk/lbm_stream_dlg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/lbm_stream_dlg.c b/ui/gtk/lbm_stream_dlg.c
index 475183ebd7..b3266ec6d5 100644
--- a/ui/gtk/lbm_stream_dlg.c
+++ b/ui/gtk/lbm_stream_dlg.c
@@ -97,10 +97,10 @@ static gchar * lbmc_stream_dlg_format_endpoint_ep(const lbm_uim_stream_endpoint_
}
else
{
- buf = wmem_strdup_printf(wmem_packet_scope(),
+ buf = ep_strdup_printf(
"%" G_GUINT32_FORMAT ":%s:%" G_GUINT16_FORMAT,
endpoint->stream_info.dest.domain,
- address_to_str(wmem_packet_scope(), &(endpoint->stream_info.dest.addr)),
+ ep_address_to_str(&(endpoint->stream_info.dest.addr)),
endpoint->stream_info.dest.port);
}
return (buf);
@@ -672,8 +672,8 @@ static gboolean lbmc_stream_dlg_tap_packet(void * tap_data, packet_info * pinfo,
substream = (lbmc_stream_dlg_substream_entry_t *)g_malloc(sizeof(lbmc_stream_dlg_substream_entry_t));
substream->substream_id = tapinfo->substream_id;
- substream->endpoint_a = wmem_strdup_printf(wmem_file_scope(), "%s:%" G_GUINT16_FORMAT, address_to_str(wmem_packet_scope(), &(pinfo->src)), (guint16)pinfo->srcport);
- substream->endpoint_b = wmem_strdup_printf(wmem_file_scope(), "%s:%" G_GUINT16_FORMAT, address_to_str(wmem_packet_scope(), &(pinfo->dst)), (guint16)pinfo->destport);
+ substream->endpoint_a = wmem_strdup_printf(wmem_file_scope(), "%s:%" G_GUINT16_FORMAT, ep_address_to_str(&(pinfo->src)), (guint16)pinfo->srcport);
+ substream->endpoint_b = wmem_strdup_printf(wmem_file_scope(), "%s:%" G_GUINT16_FORMAT, ep_address_to_str(&(pinfo->dst)), (guint16)pinfo->destport);
substream->first_frame = (guint32)(~0);
substream->last_frame = 0;
substream->messages = 0;