You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/08/04 23:26:43 UTC

svn commit: r1154023 - /subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp

Author: hwright
Date: Thu Aug  4 21:26:42 2011
New Revision: 1154023

URL: http://svn.apache.org/viewvc?rev=1154023&view=rev
Log:
JavaHL: Since we allocate the wc_ctx in a long-lived pool, explicitly destroy
it when destroying the client context proxy object.

* subversion/bindings/javahl/native/ClientContext.cpp
  (~ClientContext): Destroy the wc context of the persistent client context.

Modified:
    subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp

Modified: subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp?rev=1154023&r1=1154022&r2=1154023&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/ClientContext.cpp Thu Aug  4 21:26:42 2011
@@ -95,6 +95,9 @@ ClientContext::~ClientContext()
 {
     delete m_prompter;
 
+    // close the sqlite databae
+    svn_error_clear(svn_wc_context_destroy(persistentCtx->wc_ctx));
+
     JNIEnv *env = JNIUtil::getEnv();
     env->DeleteGlobalRef(m_jctx);
 }