Audio transcoding works correctly. Added a bunch of cleanup functions

This commit is contained in:
Jaime Thomas
2008-06-04 01:12:34 +00:00
parent 8e69faf23e
commit 4601df797e
11 changed files with 106 additions and 14 deletions

View File

@ -24,6 +24,13 @@ ecdb_project_init(Ecdb_Project *proj)
return TRUE;
}
void
ecdb_project_destroy(Ecdb_Project *proj)
{
ecdb_lose_drive_info(proj);
free(proj);
}
int
ecdb_shutdown(void *data, int type, void *event)
{
@ -32,6 +39,9 @@ ecdb_shutdown(void *data, int type, void *event)
if (em->drives)
ecore_list_destroy(em->drives);
free(em);
if (!ecore_file_recursive_rm("/tmp/ecdb"))
printf("Removal of temporary directory failed!\n");
ecore_main_loop_quit();
return FALSE;
}