litl / android-leveldb

JNI bindings for leveldb
Other
94 stars 47 forks source link

Keep a reference count on the native objects #9

Closed jobi closed 11 years ago

jobi commented 11 years ago

When creating a snapshot or an iterator, increase the reference count of the database or snapshot it's based on. Close the native resource when it's refcount reaches 0, rather than explicitely closing the wrapper.

jobi commented 11 years ago

bump

jobi commented 11 years ago

updated

tambeti commented 11 years ago

:+1: