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
1 changed files with 2 additions and 0 deletions

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);
}