diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-05-26 17:01:26 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-05-26 17:01:26 +0000 |
commit | f08bd17fabd3cf0cf7e4f81a7574de92cd2cb961 (patch) | |
tree | 4131592cf894cb41139b12b741e0400a882010e2 | |
parent | e93f30e25873a615bb4444fd50183d0f9aaf29de (diff) | |
download | xine-lib-f08bd17fabd3cf0cf7e4f81a7574de92cd2cb961.tar.gz xine-lib-f08bd17fabd3cf0cf7e4f81a7574de92cd2cb961.tar.bz2 |
memory leak fix by Barry Scott <barry.scott@onelan.co.uk>
CVS patchset: 6593
CVS date: 2004/05/26 17:01:26
-rw-r--r-- | src/input/input_v4l.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/input_v4l.c b/src/input/input_v4l.c index 17ff3c06f..60a6dbb23 100644 --- a/src/input/input_v4l.c +++ b/src/input/input_v4l.c @@ -1581,9 +1581,9 @@ static void v4l_plugin_dispose (input_plugin_t *this_gen) { 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 @@ static void v4l_plugin_dispose (input_plugin_t *this_gen) { 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 |