diff --git a/src/cdrom/cdrom_image.c b/src/cdrom/cdrom_image.c index fdde47251..20977f48b 100644 --- a/src/cdrom/cdrom_image.c +++ b/src/cdrom/cdrom_image.c @@ -2965,7 +2965,7 @@ image_close(void *local) free(img); if (temp_file[0] != 0x00) { - remove(temp_file); + remove(nvr_path(temp_file)); temp_file[0] = 0x00; } }