| Previous | 15994 Revisions | Next |
| r15263 Monday 21st May, 2012 at 18:18:10 UTC by Sandro Ronco |
|---|
| Fixed memory leak in cybiko.c (nw) |
| [src/mess/machine] | cybiko.c |
| r15262 | r15263 | |
|---|---|---|
| 73 | 73 | astring fname(machine.system().name, PATH_SEPARATOR, name, ".nv"); |
| 74 | 74 | emu_file *file = global_alloc(emu_file(machine.options().nvram_directory(), openflags)); |
| 75 | 75 | filerr = file->open(fname.cstr()); |
| 76 | return (filerr == FILERR_NONE) ? file : NULL; | |
| 76 | if (filerr == FILERR_NONE) | |
| 77 | return file; | |
| 78 | ||
| 79 | global_free(file); | |
| 80 | return NULL; | |
| 77 | 81 | } |
| 78 | 82 | |
| 79 | 83 | typedef void (nvram_load_func)(running_machine &machine, emu_file *file); |
| Previous | 15994 Revisions | Next |