OSDN Git Service

dealloc compiled-sql statements before deref'ing them from SQLiteDatabase obj.
authorVasu Nori <vnori@google.com>
Wed, 2 Dec 2009 21:21:12 +0000 (13:21 -0800)
committerVasu Nori <vnori@google.com>
Thu, 3 Dec 2009 18:01:20 +0000 (10:01 -0800)
commit6d1ec0d81cd8ecdd390b31e724bac554bb955a94
tree30fb4bd434796f4ccd26a88a66ad46711432d831
parentadd867197c0ae81b8120d70e4ae936df4a9c29bb
dealloc compiled-sql statements before deref'ing them from SQLiteDatabase obj.

dealloc compiled-sql statements before removing references of SQLiteClosable objects from SQLiteDatabase obj. otherwise, code will attempt to close database before deallocing the compiled-sql statements and that causes sqlite exceptions.
core/java/android/database/sqlite/SQLiteDatabase.java
core/java/android/database/sqlite/SQLiteProgram.java