From 657a57b406717a3ff08233eef14f20818c137f47 Mon Sep 17 00:00:00 2001 From: mannol Date: Fri, 7 Aug 2015 02:04:04 +0200 Subject: Fixed memory leak during session cleanup and fixed naming. --- toxav/rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toxav/rtp.c') diff --git a/toxav/rtp.c b/toxav/rtp.c index 148c4238..7a20877f 100644 --- a/toxav/rtp.c +++ b/toxav/rtp.c @@ -138,7 +138,7 @@ void rtp_kill ( RTPSession *session ) { if ( !session ) return; - rtp_stop_receiving (session); + rtp_stop_receiving (session); free ( session->ext_header ); free ( session->csrc ); @@ -153,6 +153,7 @@ void rtp_kill ( RTPSession *session ) LOGGER_DEBUG("Terminated RTP session: %p", session); /* And finally free session */ + free ( session->rtcp_session ); free ( session ); } int rtp_do(RTPSession *session) -- cgit v1.2.3