diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 7baf3690..cd56aed8 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -837,6 +837,7 @@ Window::Window(GtkWindow * _pstWindow, const Glib::RefPtr & _poXml) : Window::~Window() { vOnFileClose(); + vUnInitSystem(); vSaveHistoryToConfig(); vSaveJoypadsToConfig(); vSaveConfig(m_sConfigFile); @@ -935,6 +936,11 @@ void Window::vInitSystem() Init_2xSaI(32); } +void Window::vUnInitSystem() +{ + systemSoundShutdown(); +} + void Window::vInitConfig() { m_oConfig.vClear(); diff --git a/src/gtk/window.h b/src/gtk/window.h index 0ae87fef..819bf35c 100644 --- a/src/gtk/window.h +++ b/src/gtk/window.h @@ -279,6 +279,7 @@ private: ESoundQuality m_eSoundQuality; void vInitSystem(); + void vUnInitSystem(); void vInitConfig(); void vCheckConfig(); void vInitScreenArea();