From: Michael R. <mr...@us...> - 2005-01-18 21:59:15
|
Update of /cvsroot/xine/xine-lib/src/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18822/xine-lib/src/input Modified Files: input_dvd.c Log Message: **BUGFIX** fixed some memleaks reported by Jerome Index: input_dvd.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/input/input_dvd.c,v retrieving revision 1.195 retrieving revision 1.196 diff -u -r1.195 -r1.196 --- input_dvd.c 12 Dec 2004 22:01:05 -0000 1.195 +++ input_dvd.c 18 Jan 2005 21:58:19 -0000 1.196 @@ -422,8 +422,8 @@ } else { pthread_mutex_unlock(&this->buf_mutex); pthread_mutex_destroy(&this->buf_mutex); - if (this->mem) - free(this->mem); + free(this->mem); + free(this->mrl); free(this); } } @@ -528,6 +528,7 @@ /* all buffers returned, we can free the plugin now */ pthread_mutex_destroy(&this->buf_mutex); free(this->mem); + free(this->mrl); free(this); } } |