From 22b4ec91c006fec65e655ccbb0dbbc32438f820b Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 4 Jan 2015 21:40:05 -0500 Subject: 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 --- ui/tap-rtp-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/tap-rtp-common.c') diff --git a/ui/tap-rtp-common.c b/ui/tap-rtp-common.c index 1959ea1c70..0623e6ef74 100644 --- a/ui/tap-rtp-common.c +++ b/ui/tap-rtp-common.c @@ -127,10 +127,12 @@ void rtp_write_header(rtp_stream_info_t *strinfo, FILE *file) size_t sourcelen; guint16 port; /* UDP port */ guint16 padding; /* 2 padding bytes */ + char* addr_str = (char*)address_to_display(NULL, &(strinfo->dest_addr)); fprintf(file, "#!rtpplay%s %s/%u\n", RTPFILE_VERSION, - ep_address_to_display(&(strinfo->dest_addr)), + addr_str, strinfo->dest_port); + wmem_free(NULL, addr_str); start_sec = g_htonl(strinfo->start_fd->abs_ts.secs); start_usec = g_htonl(strinfo->start_fd->abs_ts.nsecs / 1000000); -- cgit v1.2.1