[Android] Android: close all Cursors

Jean-Baptiste Kempf git at videolan.org
Wed Oct 31 20:02:20 CET 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct 31 20:02:01 2012 +0100| [1dfde5c8b2a383e0e0a65688c4e234088a68db16] | committer: Jean-Baptiste Kempf

Android: close all Cursors

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1dfde5c8b2a383e0e0a65688c4e234088a68db16
---

 vlc-android/src/org/videolan/vlc/DatabaseManager.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/DatabaseManager.java b/vlc-android/src/org/videolan/vlc/DatabaseManager.java
index 75831d1..6e1a4c2 100644
--- a/vlc-android/src/org/videolan/vlc/DatabaseManager.java
+++ b/vlc-android/src/org/videolan/vlc/DatabaseManager.java
@@ -443,6 +443,7 @@ public class DatabaseManager {
                 blob = null;
             }
         }
+        cursor.close();
         return picture;
     }
 



More information about the Android mailing list