[iso] enable extra libcdio debugging with Alt-.

* Also fix 2 memory leaks
This commit is contained in:
Pete Batard 2020-05-12 14:13:44 +01:00
parent bcca9144b7
commit 4bf69215bf
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
4 changed files with 11 additions and 14 deletions

View file

@ -142,13 +142,7 @@ static __inline char* sanitize_filename(char* filename, BOOL* is_identical)
static void log_handler (cdio_log_level_t level, const char *message)
{
switch(level) {
case CDIO_LOG_DEBUG:
// TODO: use a setting to enable libcdio debug?
return;
default:
uprintf("libcdio: %s\n", message);
}
uprintf("libcdio: %s", message);
}
/*
@ -1080,11 +1074,11 @@ out:
if (fd != NULL)
fclose(fd);
update_md5sum();
StrArrayDestroy(&modified_path);
} else if (HAS_BOOTMGR(img_report) && enable_ntfs_compression) {
// bootmgr might need to be uncompressed: https://github.com/pbatard/rufus/issues/1381
RunCommand("compact /u bootmgr* efi/boot/*.efi", dest_dir, TRUE);
}
StrArrayDestroy(&modified_path);
}
if (p_iso != NULL)
iso9660_close(p_iso);