Mercurial > hg > audiodb
view close.cpp @ 495:c291e9201a3c api-inversion
libtests cleanups
Delete unused functions from test_utils.lib.h. maketestfile()'s int*
argument should be an int; fix that and alter the sources accordingly.
Add -Werror to the Makefile for test files, now that they all do compile
without warnings.
author | mas01cr |
---|---|
date | Sat, 10 Jan 2009 15:33:21 +0000 |
parents | 1030664df98c |
children |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" #include "audioDB-internals.h" } void audiodb_close(adb_t *adb) { free(adb->path); free(adb->header); delete adb->keys; delete adb->keymap; delete adb->track_lengths; delete adb->track_offsets; if(adb->cached_lsh) { delete adb->cached_lsh; } close(adb->fd); free(adb); }