[pulseaudio-discuss] [PATCH v6 02/37] rtp: Freeing ioline when disconnecting
Hajime Fujita
crisp.fujita at gmail.com
Sun Jan 31 20:15:59 PST 2016
From: Hajime Fujita <crisp.fujita at nifty.com>
pa_ioline_close does not free the ioline structure itself, so we
have to unref the structure if we want to free it.
---
src/modules/rtp/rtsp_client.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/modules/rtp/rtsp_client.c b/src/modules/rtp/rtsp_client.c
index bdfd24f..6f828ba 100644
--- a/src/modules/rtp/rtsp_client.c
+++ b/src/modules/rtp/rtsp_client.c
@@ -348,8 +348,10 @@ void pa_rtsp_set_callback(pa_rtsp_client *c, pa_rtsp_cb_t callback, void *userda
void pa_rtsp_disconnect(pa_rtsp_client *c) {
pa_assert(c);
- if (c->ioline)
+ if (c->ioline) {
pa_ioline_close(c->ioline);
+ pa_ioline_unref(c->ioline);
+ }
c->ioline = NULL;
}
--
2.5.0
More information about the pulseaudio-discuss
mailing list