Release the drive if we can't erase.
This commit is contained in:
parent
7aa56383a4
commit
68e7815eb3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user