Browse Source

Fehler beim beenden des Threads behoben

Kolja Strohm 5 years ago
parent
commit
73c3332fbb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      GSL/Sound.cpp

+ 4 - 0
GSL/Sound.cpp

@@ -440,5 +440,9 @@ Thread *GSLSound::getThis()
 
 Thread *GSLSound::release()
 {
+#ifdef WIN32
+    if( ref == 2 && run )
+        stopSound();
+#endif
     return Thread::release();
 }