Skip to content

Commit 628568b

Browse files
Remove locking when finalizing sqlite3_stmt from Java
1 parent 93eaef0 commit 628568b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

android-database-sqlcipher/src/main/java/net/sqlcipher/database/SQLiteCompiledSql.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,8 @@ private void compile(String sql, boolean forceCompilation) {
100100
if (SQLiteDebug.DEBUG_ACTIVE_CURSOR_FINALIZATION) {
101101
Log.v(TAG, "closed and deallocated DbObj (id#" + nStatement +")");
102102
}
103-
try {
104-
mDatabase.lock();
105-
native_finalize();
106-
nStatement = 0;
107-
} finally {
108-
mDatabase.unlock();
109-
}
103+
native_finalize();
104+
nStatement = 0;
110105
}
111106
}
112107

0 commit comments

Comments
 (0)