Check the return value from RTMP_SendBytesReceived()
commit060206d121657d7e45c01ac022dd071c877b4caa
authorMartin Storsjo <martin@martin.st>
Fri, 15 Jul 2011 10:46:02 +0000 (15 13:46 +0300)
committerHoward Chu <hyc@highlandsun.com>
Sat, 23 Jul 2011 01:00:29 +0000 (22 18:00 -0700)
tree4dce874eb2df59796088c205826993c665e429ec
parent9931c44867d157621ae10cf489ba336091dfab6b
Check the return value from RTMP_SendBytesReceived()

This avoids double frees in RTMP_Close(), if the
RTMP_SendBytesReceived() call failed, which earlier led
to RTMP_ReadPacket() writing back an already freed buffer
(freed by RTMP_Close() within WriteN()) into m_vecChannelsIn.
librtmp/rtmp.c