blob: 2a6b7d2d3642196a624763effdca17e6702f1335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- src/core/CLucene/store/FSDirectory.cpp
+++ src/core/CLucene/store/FSDirectory.cpp
@@ -219,9 +219,8 @@
_CLDECDELETE(handle);
//printf("handle=%d\n", handle->__cl_refcount);
- if ( dounlock ){
mutex->unlock();
- }else{
+ if ( !dounlock ){
delete mutex;
}
}
|