From: Hajime Fujita Date: Mon, 1 Feb 2016 04:15:59 +0000 (-0600) Subject: rtp: Freeing ioline when disconnecting X-Git-Tag: v10.99.1~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d623c689e6b848fff108bc545ba7d7c34b6db699;p=platform%2Fupstream%2Fpulseaudio.git rtp: Freeing ioline when disconnecting pa_ioline_close does not free the ioline structure itself, so we have to unref the structure if we want to free it. Reviewed-by: Anton Lundin --- 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; }