Previous 199869 Revisions Next

r17921 Sunday 16th September, 2012 at 10:35:05 UTC by Miodrag Milanović
netlist memory leak fix (no whatsnew)
[src/emu/machine]netlist.c netlist.h

trunk/src/emu/machine/netlist.c
r17920r17921
430430
431431netlist_setup_t::~netlist_setup_t()
432432{
433   for (tagmap_devices_t::entry_t *entry = m_devices.first(); entry != NULL; entry = m_devices.next(entry))
434   {
435      remove_dev(entry->object()->name());
436   }
433437}
434438
435439
r17920r17921
929933void netlist_mame_device::device_stop()
930934{
931935   m_setup->print_stats();
936   
937   global_free(m_setup);
938   global_free(m_netlist);
932939}
933940
934941void netlist_mame_device::device_post_load()
trunk/src/emu/machine/netlist.h
r17920r17921
280280      m_ptr = m_list;
281281      m_ptr--;
282282   }
283   ~net_list_t()
284   {
285      global_free(m_list);
286   }
283287   ATTR_HOT inline void add(const _ListClass elem)
284288   {
285289      assert(m_ptr-m_list <= _NumElements - 1);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team