mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
* new tool pacmd
* fix pacat/paplay/pactl for new API version * fix memory leak in pa_ioline git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@304 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c90409e4b7
commit
28d97441e7
8 changed files with 218 additions and 4 deletions
|
|
@ -89,6 +89,10 @@ static void ioline_free(struct pa_ioline *l) {
|
|||
|
||||
if (l->io)
|
||||
pa_iochannel_free(l->io);
|
||||
|
||||
if (l->defer_event)
|
||||
l->mainloop->defer_free(l->defer_event);
|
||||
|
||||
pa_xfree(l->wbuf);
|
||||
pa_xfree(l->rbuf);
|
||||
pa_xfree(l);
|
||||
|
|
@ -116,6 +120,11 @@ void pa_ioline_close(struct pa_ioline *l) {
|
|||
pa_iochannel_free(l->io);
|
||||
l->io = NULL;
|
||||
}
|
||||
|
||||
if (l->defer_event) {
|
||||
l->mainloop->defer_free(l->defer_event);
|
||||
l->defer_event = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void pa_ioline_puts(struct pa_ioline *l, const char *c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue