ecere/GuiApplication: Fixed unlocking mutex when it has not been locked
[sdk] / ecere / src / gui / GuiApplication.ec
index 2ad10c9..47a2334 100644 (file)
@@ -228,7 +228,8 @@ public class GuiApplication : Application
 
 #if !defined(__ANDROID__)
       // Because destruction of app won't be from main thread
-      lockMutex.Release();
+      if(guiApplicationInitialized)
+         lockMutex.Release();
 #endif
 
       if(interfaceDriver)