summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2015-08-07 02:04:04 +0200
committermannol <eniz_vukovic@hotmail.com>2015-08-07 02:04:04 +0200
commit657a57b406717a3ff08233eef14f20818c137f47 (patch)
treeac0bcda6a036825796d29ef4b5538045233bd082 /toxav/rtp.c
parent7d5de68364f83662a19e45e6e3ab021414178df5 (diff)
Fixed memory leak during session cleanup and fixed naming.
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r--toxav/rtp.c3
1 files changed, 2 insertions, 1 deletions
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 )
138{ 138{
139 if ( !session ) return; 139 if ( !session ) return;
140 140
141 rtp_stop_receiving (session); 141 rtp_stop_receiving (session);
142 142
143 free ( session->ext_header ); 143 free ( session->ext_header );
144 free ( session->csrc ); 144 free ( session->csrc );
@@ -153,6 +153,7 @@ void rtp_kill ( RTPSession *session )
153 LOGGER_DEBUG("Terminated RTP session: %p", session); 153 LOGGER_DEBUG("Terminated RTP session: %p", session);
154 154
155 /* And finally free session */ 155 /* And finally free session */
156 free ( session->rtcp_session );
156 free ( session ); 157 free ( session );
157} 158}
158int rtp_do(RTPSession *session) 159int rtp_do(RTPSession *session)