You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by vi...@apache.org on 2015/04/24 03:30:51 UTC

[6/6] cordova-plugin-contacts git commit: CB-5278: We must close the cursor or we take down the whole app, and the debugger doesn't catch it.

CB-5278: We must close the cursor or we take down the whole app, and the debugger doesn't catch it.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/6b69ffa3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/6b69ffa3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/6b69ffa3

Branch: refs/heads/CB-8860cordova-plugin-contacts
Commit: 6b69ffa348d4fcec92e805d2df3d412137b660af
Parents: df09ba5
Author: Joe Bowser <bo...@apache.org>
Authored: Thu Apr 16 16:46:08 2015 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu Apr 16 16:46:08 2015 -0700

----------------------------------------------------------------------
 src/android/ContactAccessorSdk5.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/6b69ffa3/src/android/ContactAccessorSdk5.java
----------------------------------------------------------------------
diff --git a/src/android/ContactAccessorSdk5.java b/src/android/ContactAccessorSdk5.java
index 023d30d..541e11d 100644
--- a/src/android/ContactAccessorSdk5.java
+++ b/src/android/ContactAccessorSdk5.java
@@ -1813,6 +1813,8 @@ public class ContactAccessorSdk5 extends ContactAccessor {
             Log.d(LOG_TAG, "Could not find contact with ID");
         }
 
+        cursor.close();
+
         return (result > 0) ? true : false;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org