mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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
This commit is contained in:
parent
1fb046536a
commit
f97c5debcc
1 changed files with 2 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ pa_raop_client* pa_raop_client_new(pa_mainloop_api *mainloop, const char* host)
|
||||||
|
|
||||||
c->mainloop = mainloop;
|
c->mainloop = mainloop;
|
||||||
c->fd = -1;
|
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)");
|
c->rtsp = pa_rtsp_client_new("iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)");
|
||||||
|
|
||||||
/* Initialise the AES encryption system */
|
/* 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_iv);
|
||||||
pa_xfree(c->aes_nv);
|
pa_xfree(c->aes_nv);
|
||||||
pa_xfree(c->aes_key);
|
pa_xfree(c->aes_key);
|
||||||
|
pa_xfree(c->host);
|
||||||
pa_xfree(c);
|
pa_xfree(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue