diff options
author | Colin Guthrie <pulse@colin.guthr.ie> | 2008-05-11 12:18:36 +0000 |
---|---|---|
committer | Colin Guthrie <pulse@colin.guthr.ie> | 2008-10-08 20:32:07 +0100 |
commit | f97c5debcc9564d368e6d79606df7b3ce6269d58 (patch) | |
tree | 44a70c7d5e65b8db29fcf0833814ce0fd9b5e6d0 /src/modules/rtp | |
parent | 1fb046536a687e7c5eef9a440f66d111cd0e8cb4 (diff) |
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
Diffstat (limited to 'src/modules/rtp')
-rw-r--r-- | src/modules/rtp/raop_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |