Release the drive if we can't erase.

This commit is contained in:
Jaime Thomas 2008-11-08 02:43:13 +00:00
parent 29817bc019
commit e22c675c39

View File

@ -380,10 +380,14 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
if (!ecdb_erase_disc(proj))
{
Ecdb_Project *p = ECDB_PROJECT(proj);
printf("Couldn't begin burn!\n");
ecdb_erase_project_destroy(proj);
snprintf(buf, sizeof(buf), "Disc not erasable!");
edje_object_part_text_set(swallow, "progress_text", buf);
burn_drive_release(p->drive->tangible[0].drive, 0);
burn_drive_info_free(p->drive->tangible);
ecdb_erase_project_destroy(proj);
return;
}