src/emu/uimenu.c
| r11551 | r11552 | |
| 430 | 430 | /* free textures */ |
| 431 | 431 | machine.render().texture_free(hilight_texture); |
| 432 | 432 | machine.render().texture_free(arrow_texture); |
| 433 | |
| 434 | if (drivlist) |
| 435 | { |
| 436 | global_free(drivlist); |
| 437 | drivlist = NULL; |
| 438 | } |
| 433 | 439 | } |
| 434 | 440 | |
| 435 | 441 | |
| r11551 | r11552 | |
| 3720 | 3726 | // start with an empty list |
| 3721 | 3727 | // hack alert: use new directly here to avoid reporting this one-time static memory as unfreed |
| 3722 | 3728 | if (drivlist == NULL) |
| 3723 | | drivlist = new driver_enumerator(menu->machine().options()); |
| 3729 | drivlist = global_alloc(driver_enumerator(menu->machine().options())); |
| 3724 | 3730 | drivlist->exclude_all(); |
| 3725 | 3731 | |
| 3726 | 3732 | /* open a path to the ROMs and find them in the array */ |