More valgrind-found memory leaks. (More to come...)

This commit is contained in:
rocky
2004-02-07 18:53:02 +00:00
parent c090e7ee81
commit 6952d172e7
9 changed files with 44 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: _cdio_stdio.c,v 1.5 2004/01/10 03:03:08 rocky Exp $
$Id: _cdio_stdio.c,v 1.6 2004/02/07 18:53:02 rocky Exp $
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -35,7 +35,7 @@
#include "_cdio_stream.h"
#include "_cdio_stdio.h"
static const char _rcsid[] = "$Id: _cdio_stdio.c,v 1.5 2004/01/10 03:03:08 rocky Exp $";
static const char _rcsid[] = "$Id: _cdio_stdio.c,v 1.6 2004/02/07 18:53:02 rocky Exp $";
#define CDIO_STDIO_BUFSIZE (128*1024)
@@ -171,6 +171,15 @@ _stdio_read(void *user_data, void *buf, long int count)
return read;
}
/*!
Deallocate resources assocaited with obj. After this obj is unusable.
*/
void
cdio_stdio_destroy(CdioDataSource *obj)
{
cdio_stream_destroy(obj);
}
CdioDataSource*
cdio_stdio_new(const char pathname[])
{