Tell libavl to free() ITML <-> DB mappings

The mappings should be free()d with the standard free() when we are
done with the tree. This fixes a memory leak.
This commit is contained in:
Julien BLACHE 2010-01-20 18:19:51 +01:00
parent 2cb67743fc
commit f126b04521
1 changed files with 1 additions and 1 deletions

View File

@ -815,7 +815,7 @@ scan_itunes_itml(char *file)
return;
}
itml_to_db = avl_alloc_tree(itml_to_db_compare, NULL);
itml_to_db = avl_alloc_tree(itml_to_db_compare, free);
if (!itml_to_db)
{
DPRINTF(E_FATAL, L_SCAN, "iTunes library parser could not allocate AVL tree\n");