void emulator_window_done(EmulatorWindow* emulator) { if (emulator->ui) { skin_ui_free(emulator->ui); emulator->ui = NULL; } if (emulator->layout_file) { skin_file_free(emulator->layout_file); emulator->layout_file = NULL; } }
void qemulator_done(QEmulator* emulator) { if (emulator->window) { skin_window_free(emulator->window); emulator->window = NULL; } if (emulator->trackball) { skin_trackball_destroy(emulator->trackball); emulator->trackball = NULL; } if (emulator->keyboard) { skin_keyboard_free(emulator->keyboard); emulator->keyboard = NULL; } emulator->layout = NULL; if (emulator->layout_file) { skin_file_free(emulator->layout_file); emulator->layout_file = NULL; } }