comparison rtsp.c @ 2263:f13dad8ba721 libavformat

.memleak fix by Ronald Bultje. OK'd by Luca.
author alex
date Mon, 16 Jul 2007 10:56:40 +0000
parents 6dade35dc9b3
children 7eb456c4ed8a
comparison
equal deleted inserted replaced
2262:794b39712016 2263:f13dad8ba721
812 (void)url_readbuf(rt->rtsp_hd, content, content_length); 812 (void)url_readbuf(rt->rtsp_hd, content, content_length);
813 content[content_length] = '\0'; 813 content[content_length] = '\0';
814 } 814 }
815 if (content_ptr) 815 if (content_ptr)
816 *content_ptr = content; 816 *content_ptr = content;
817 else
818 av_free(content);
817 } 819 }
818 820
819 821
820 /* close and free RTSP streams */ 822 /* close and free RTSP streams */
821 static void rtsp_close_streams(RTSPState *rt) 823 static void rtsp_close_streams(RTSPState *rt)