1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 13:21:13 +00:00

free'ing priv struct

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1643 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-22 23:54:38 +00:00
parent a44397c48c
commit 48fdd5dd82

View File

@ -158,11 +158,13 @@ stream_t* new_stream(int fd,int type){
s->type=type;
s->buf_pos=s->buf_len=0;
s->start_pos=s->end_pos=0;
s->priv=NULL;
stream_reset(s);
return s;
}
void free_stream(stream_t *s){
if(s->priv) free(s->priv);
free(s);
}