0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Fix several more rtsp-related memleaks.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29625 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-09-02 10:44:26 +00:00
parent 70a247b26d
commit ac11b35a6a
3 changed files with 4 additions and 1 deletions

View File

@ -94,6 +94,7 @@ static void rtsp_close(rtsp_t *s) {
if (s->mrl) free(s->mrl);
if (s->session) free(s->session);
if (s->user_agent) free(s->user_agent);
free(s->server);
rtsp_free_answers(s);
rtsp_unschedule_all(s);
free(s);
@ -194,6 +195,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host,
rtsp_session->real_session->header_len;
}
rtsp_session->real_session->recv_read = 0;
rmff_free_header(h);
} else /* not a Real server : try RTP instead */
{
char *public = NULL;

View File

@ -249,7 +249,7 @@ static rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t b
if (!desc->stream[i]->mlti_data) {
len = 0;
buf = NULL;
buf = xbuffer_free(buf);
} else
len=select_mlti_data(desc->stream[i]->mlti_data, desc->stream[i]->mlti_data_size, rulematches[0], &buf);

View File

@ -376,6 +376,7 @@ void sdpplin_free(sdpplin_t *description) {
free(description->stream[i]->mlti_data);
if (description->stream[i]->asm_rule_book)
free(description->stream[i]->asm_rule_book);
free(description->stream[i]->id);
free(description->stream[i]);
}
}