From f97c5debcc9564d368e6d79606df7b3ce6269d58 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 11 May 2008 12:18:36 +0000 Subject: Properly duplicate the hostname passed in on connect. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2396 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/modules/rtp/raop_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/rtp/raop_client.c b/src/modules/rtp/raop_client.c index 0df80e11..bad747bb 100644 --- a/src/modules/rtp/raop_client.c +++ b/src/modules/rtp/raop_client.c @@ -355,7 +355,7 @@ pa_raop_client* pa_raop_client_new(pa_mainloop_api *mainloop, const char* host) c->mainloop = mainloop; c->fd = -1; - c->host = host; + c->host = pa_xstrdup(host); c->rtsp = pa_rtsp_client_new("iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)"); /* Initialise the AES encryption system */ @@ -390,6 +390,7 @@ void pa_raop_client_free(pa_raop_client* c) pa_xfree(c->aes_iv); pa_xfree(c->aes_nv); pa_xfree(c->aes_key); + pa_xfree(c->host); pa_xfree(c); } -- cgit