summaryrefslogtreecommitdiff
path: root/lib/cdutils.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2003-12-26 19:05:30 +0000
committerpixel <pixel>2003-12-26 19:05:30 +0000
commit6ad8619941b8eb79d7ad1d7fe1cf75012fb870d0 (patch)
tree7235810f164bc594faa50e27c69e1c15e8f4f768 /lib/cdutils.cpp
parentb71e7e634ff0e53b48b0ac1fe2a71bffdbd4b248 (diff)
Commit of the day
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r--lib/cdutils.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 9e81c89..4e25aed 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cdutils.cpp,v 1.20 2003-12-12 12:45:20 pixel Exp $ */
+/* $Id: cdutils.cpp,v 1.21 2003-12-26 19:05:31 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -36,9 +36,7 @@ cdutils::cdutils(Handle * r, Handle * w) : rootDir(0), f_iso_r(r), f_iso_w(w), p
cdutils::~cdutils() {
if (ppf_file)
delete ppf_file;
- void * t = rootDir;
- free(t);
- rootDir = 0;
+ free(rootDir);
}
unsigned char cdutils::from_BCD(unsigned char x) {
@@ -827,9 +825,7 @@ cdfile::cdfile(cdutils * _cd, int _sector, ssize_t _size, int _mode) : Handle(-1
}
cdfile::~cdfile() {
- void * t = dir;
- free(t);
- dir = 0;
+ free(dir);
}
ssize_t cdfile::read(void *buf, size_t count) throw (GeneralException) {