mirror of
https://github.com/holub/mame
synced 2025-05-12 09:08:53 +03:00
Make emu_timer destructor private to prevent direct freeing.
This commit is contained in:
parent
e90f4275f1
commit
b93257b357
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user