diff options
author | mannol <eniz_vukovic@hotmail.com> | 2015-08-07 02:04:04 +0200 |
---|---|---|
committer | mannol <eniz_vukovic@hotmail.com> | 2015-08-07 02:04:04 +0200 |
commit | 657a57b406717a3ff08233eef14f20818c137f47 (patch) | |
tree | ac0bcda6a036825796d29ef4b5538045233bd082 /toxav/rtp.c | |
parent | 7d5de68364f83662a19e45e6e3ab021414178df5 (diff) |
Fixed memory leak during session cleanup and fixed naming.
Diffstat (limited to 'toxav/rtp.c')
-rw-r--r-- | toxav/rtp.c | 3 |
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 | } |
158 | int rtp_do(RTPSession *session) | 159 | int rtp_do(RTPSession *session) |