Browse Source

fix the SQLite mutex free-fun cause a memory leak

geniusgogo 11 years ago
parent
commit
2948bf55f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/external/SQLite-3.8.1/src/mutex_rtt.c

+ 1 - 1
components/external/SQLite-3.8.1/src/mutex_rtt.c

@@ -182,7 +182,7 @@ static sqlite3_mutex *rttMutexAlloc(int iType){
 static void rttMutexFree(sqlite3_mutex *p){
   assert( p->nRef==0 );
   assert( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE );
-  rt_mutex_delete(&p->mutex);
+  rt_mutex_detach(&p->mutex);
   sqlite3_free(p);
 }