From: Michael R. <mr...@us...> - 2004-05-26 17:01:45
|
Update of /cvsroot/xine/xine-lib/src/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4744 Modified Files: input_v4l.c Log Message: memory leak fix by Barry Scott <bar...@on...> Index: input_v4l.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/input/input_v4l.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- input_v4l.c 10 Apr 2004 15:45:11 -0000 1.42 +++ input_v4l.c 26 May 2004 17:01:26 -0000 1.43 @@ -1581,9 +1581,9 @@ lprintf("Freeing allocated audio frames"); if (this->aud_frames) { buf_element_t *cur_frame = this->aud_frames; - buf_element_t *next_frame = NULL; - while ((next_frame = cur_frame->next) != NULL) { + while (cur_frame != NULL) { + buf_element_t *next_frame = cur_frame->next; #ifdef LOG printf("."); #endif @@ -1606,9 +1606,9 @@ lprintf("Freeing allocated video frames"); if (this->vid_frames) { buf_element_t *cur_frame = this->vid_frames; - buf_element_t *next_frame = NULL; - while ((next_frame = cur_frame->next) != NULL) { + while (cur_frame != NULL) { + buf_element_t *next_frame = cur_frame->next; #ifdef LOG printf("."); #endif |