| 242 | } |
| 243 | |
| 244 | void 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 | |
| 261 | MainLoop *OS_LinuxBSD::get_main_loop() const { |
| 262 | return main_loop; |