Previous 15994 Revisions Next

r11552 Sunday 15th May, 2011 at 15:50:37 UTC by Miodrag Milanović
Fixed annoying memory leak (no whatsnew)
[src/emu]uimenu.c

src/emu/uimenu.c
r11551r11552
430430   /* free textures */
431431   machine.render().texture_free(hilight_texture);
432432   machine.render().texture_free(arrow_texture);
433   
434   if (drivlist)
435   {
436      global_free(drivlist);
437      drivlist = NULL;
438   }
433439}
434440
435441
r11551r11552
37203726   // start with an empty list
37213727   // hack alert: use new directly here to avoid reporting this one-time static memory as unfreed
37223728   if (drivlist == NULL)
3723      drivlist = new driver_enumerator(menu->machine().options());
3729      drivlist = global_alloc(driver_enumerator(menu->machine().options()));
37243730   drivlist->exclude_all();
37253731
37263732   /* open a path to the ROMs and find them in the array */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team