mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
implemented the deinit function
This commit is contained in:
parent
3949902b1b
commit
95d1283c86
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user