MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / finalize

Method finalize

platform/linuxbsd/os_linuxbsd.cpp:244–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void OS_LinuxBSD::finalize() {
245 if (main_loop) {
246 memdelete(main_loop);
247 }
248 main_loop = nullptr;
249
250#ifdef ALSAMIDI_ENABLED
251 driver_alsamidi.close();
252#endif
253
254#ifdef SDL_ENABLED
255 if (joypad_sdl) {
256 memdelete(joypad_sdl);
257 }
258#endif
259}
260
261MainLoop *OS_LinuxBSD::get_main_loop() const {
262 return main_loop;

Callers 1

runMethod · 0.45

Calls 2

memdeleteFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected