Mercurial > hg > audiodb
annotate close.cpp @ 491:29d28cfe0222 api-inversion
More removal of audiodb_query()
There's still a certain amount of code duplication between these test
files (for example, almost all of 0011/ and 0012/ are exactly the same),
but it's all improvement.
author | mas01cr |
---|---|
date | Sat, 10 Jan 2009 15:33:02 +0000 |
parents | 1030664df98c |
children |
rev | line source |
---|---|
mas01cr@392 | 1 #include "audioDB.h" |
mas01cr@392 | 2 extern "C" { |
mas01cr@392 | 3 #include "audioDB_API.h" |
mas01cr@402 | 4 #include "audioDB-internals.h" |
mas01cr@392 | 5 } |
mas01cr@392 | 6 |
mas01cr@392 | 7 void audiodb_close(adb_t *adb) { |
mas01cr@392 | 8 free(adb->path); |
mas01cr@392 | 9 free(adb->header); |
mas01cr@402 | 10 delete adb->keys; |
mas01cr@453 | 11 delete adb->keymap; |
mas01cr@432 | 12 delete adb->track_lengths; |
mas01cr@442 | 13 delete adb->track_offsets; |
mas01cr@465 | 14 if(adb->cached_lsh) { |
mas01cr@465 | 15 delete adb->cached_lsh; |
mas01cr@465 | 16 } |
mas01cr@392 | 17 close(adb->fd); |
mas01cr@392 | 18 free(adb); |
mas01cr@392 | 19 } |