bclistbox selection segv + other minor fixes
[goodguy/history.git] / cinelerra-5.1 / guicast / mutex.C
index a4a6e21f99f605c1e30fe7a7ffb6092cad5ab40b..6bbf279e78396f033460a1a8cfd20a3f150e3561 100644 (file)
@@ -96,6 +96,10 @@ int Mutex::lock(const char *location)
 
 int Mutex::unlock()
 {
+       if( count <= 0 ) {
+               printf("Mutex::unlock not locked: %s\n", title);
+               return 0;
+       }
 // Remove from recursive status
        if(recursive)
        {