implemented the deinit function

This commit is contained in:
Ron Pedde 2003-11-23 18:15:05 +00:00
parent 3949902b1b
commit 95d1283c86

View File

@ -101,7 +101,14 @@ int db_init(char *parameters) {
* Close the db, in this case freeing memory * Close the db, in this case freeing memory
*/ */
int db_deinit(void) { int db_deinit(void) {
/* free used memory here */ MP3RECORD *current;
while(db_root.next) {
current=db_root.next;
db_root.next=current->next;
db_freerecord(current);
}
return 0; return 0;
} }