Fix leak on background rescan

This commit is contained in:
Ron Pedde 2005-04-16 21:26:35 +00:00
parent 350e4affa9
commit 40d97beea1
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include "db-generic.h"
#include "configfile.h"

View File

@ -471,10 +471,10 @@ int scan_path(char *path) {
if((!pmp3) || (pmp3->db_timestamp < modified_time) ||
(pmp3->force_update)) {
scan_music_file(path,pde,&sb);
db_dispose_item(pmp3);
} else {
DPRINTF(E_DBG,L_SCAN,"Skipping file... not modified\n");
}
db_dispose_item(pmp3);
}
}
}