forked from jasder/antlr
Merge pull request #2413 from nxtstep/fix/mutex-free
[Swift-runtime] Make sure mutexes are being freed accordingly
This commit is contained in:
commit
0308999f06
|
@ -35,4 +35,8 @@ class Mutex {
|
|||
return try closure()
|
||||
}
|
||||
|
||||
deinit {
|
||||
// free the mutex resource
|
||||
pthread_mutex_destroy(&mutex)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue