Mercurial > mplayer.hg
comparison stream/librtsp/rtsp_session.c @ 32537:8fa2f43cb760
Remove most of the NULL pointer check before free all over the code
author | cboesch |
---|---|
date | Sun, 14 Nov 2010 09:12:34 +0000 |
parents | 629b30951662 |
children |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
87 if (s->server_state == RTSP_PLAYING) | 87 if (s->server_state == RTSP_PLAYING) |
88 rtsp_request_teardown (s, NULL); | 88 rtsp_request_teardown (s, NULL); |
89 closesocket (s->s); | 89 closesocket (s->s); |
90 } | 90 } |
91 | 91 |
92 if (s->path) free(s->path); | 92 free(s->path); |
93 if (s->host) free(s->host); | 93 free(s->host); |
94 if (s->mrl) free(s->mrl); | 94 free(s->mrl); |
95 if (s->session) free(s->session); | 95 free(s->session); |
96 if (s->user_agent) free(s->user_agent); | 96 free(s->user_agent); |
97 free(s->server); | 97 free(s->server); |
98 rtsp_free_answers(s); | 98 rtsp_free_answers(s); |
99 rtsp_unschedule_all(s); | 99 rtsp_unschedule_all(s); |
100 free(s); | 100 free(s); |
101 } | 101 } |