Fix problems with not noticing removed files

This commit is contained in:
Ron Pedde 2004-04-06 21:27:31 +00:00
parent 5710d771d0
commit ffff21d118
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@
#include "err.h"
#include "mp3-scanner.h"
#include "playlist.h"
#define RB_FREE
#include "redblack.h"
@ -327,8 +328,8 @@ int db_end_initial_update(void) {
for(val=rblookup(RB_LUFIRST,NULL,db_removed); val != NULL;
val=rblookup(RB_LUNEXT,val,db_removed)) {
db_delete(*((int*)val));
free(val);
}
DPRINTF(ERR_DEBUG,"Done removing stale items\n");
rbdestroy(db_removed);