summaryrefslogtreecommitdiff
path: root/libs/utils/TextOutput.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2012-03-06 13:48:56 -0800
committer Jeff Brown <jeffbrown@google.com> 2012-03-06 16:42:56 -0800
commit03bd302aebbb77f4f95789a269c8a5463ac5a840 (patch)
treeabd49f5d5e379f75c9cab050b7426e492884e542 /libs/utils/TextOutput.cpp
parentb4827c089fc0aec49a73cc32cd18d2ce4d627c5a (diff)
Don't close the database until all references released.
SQLiteDatabase.close() should call releaseReference() rather than closing the database immediately. SQLiteDatabase should also hold a reference to itself while performing certain operations to ensure that they complete normally even if another thread closes the database at the same time. Fixed a couple of missing or redundant uses of acquireReference() related to CursorWindows. To be honest, the reference counting performed by SQLiteClosable should not be needed, but we're stuck with it in the API. Bug: 6104842 Change-Id: I3444a697409905d4a36b56418dc7766f5ba76b59
Diffstat (limited to 'libs/utils/TextOutput.cpp')
0 files changed, 0 insertions, 0 deletions