Make emu_timer destructor private to prevent direct freeing.

This commit is contained in:
Aaron Giles 2011-02-16 05:56:07 +00:00
parent e90f4275f1
commit b93257b357
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,15 @@ emu_timer::emu_timer()
}
//-------------------------------------------------
// ~emu_timer - destructor
//-------------------------------------------------
emu_timer::~emu_timer()
{
}
//-------------------------------------------------
// init - completely initialize the state when
// re-allocated as a non-device timer

View File

@ -89,9 +89,11 @@ class emu_timer
friend class device_scheduler;
friend class simple_list<emu_timer>;
friend class fixed_allocator<emu_timer>;
friend class resource_pool_object<emu_timer>;
// construction/destruction
emu_timer();
~emu_timer();
// allocation and re-use
emu_timer &init(running_machine &machine, timer_expired_func callback, const char *name, void *ptr, bool temporary);