static void destroy() { boardRemoveExternalDevices(); ay8910SetIoPort(ay8910, NULL, NULL, NULL, NULL); ay8910Destroy(ay8910); ay8910 = NULL; audioKeyClickDestroy(keyClick); r800DebugDestroy(); slotManagerDestroy(); deviceManagerDestroy(); r800Destroy(r800); }
static void destroy(RomMapperOpcodeModule* rm) { int i; deviceManagerUnregister(rm->deviceHandle); debugDeviceUnregister(rm->debugHandle); ay8910Destroy(rm->ay8910); for (i = 0; i < 16; i++) { ioPortUnregister(0x60 + i); } free(rm); }