fixed memory leak when loading CHD from software list (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-10 09:23:07 +00:00
parent 9b115b70f1
commit b79979da8b

View File

@ -1377,7 +1377,7 @@ void load_software_part_region(device_t &device, software_list_device &swlist, c
if (ROMREGION_ISROMDATA(region))
process_rom_entries(romdata, locationtag, region, region + 1, &device, TRUE);
else if (ROMREGION_ISDISKDATA(region))
process_disk_entries(romdata, core_strdup(regiontag.cstr()), region, region + 1, locationtag);
process_disk_entries(romdata, regiontag, region, region + 1, locationtag);
}
/* now go back and post-process all the regions */