01963: screenless systems: memory leak with -mngwrite

This commit is contained in:
Aaron Giles 2008-07-06 06:07:23 +00:00
parent 40ab9d6244
commit 161b2a86e8

View File

@ -404,11 +404,8 @@ static void video_exit(running_machine *machine)
assert(machine->config != NULL);
/* stop recording any movie */
if (machine->primary_screen != NULL)
{
video_mng_end_recording(machine);
video_avi_end_recording(machine);
}
video_mng_end_recording(machine);
video_avi_end_recording(machine);
/* free all the graphics elements */
for (i = 0; i < MAX_GFX_ELEMENTS; i++)