diff options
Diffstat (limited to 'lib/cdreader.cpp')
-rw-r--r-- | lib/cdreader.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 3de92c0..83bd1b3 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdreader.cpp,v 1.18 2003-12-14 21:14:08 pixel Exp $ */ +/* $Id: cdreader.cpp,v 1.19 2003-12-26 19:05:31 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -128,20 +128,19 @@ cdreader::~cdreader() { } void cdreader::removetail() { - void * t = (void *) tail; if (!tail) return; sectors[tail->n] = 0; if (head == tail) { - free(t); + free(tail); head = tail = 0; nsectors = 0; } else { cachedsector * p; (p = tail->prev)->next = 0; - free(t); + free(tail); tail = p; nsectors--; } |