[Android] Close cursor

Geoffrey Métais git at videolan.org
Tue Feb 17 17:43:46 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 17 11:51:14 2015 +0100| [fd9d5a67da572430c0be25a29f655bb01df94189] | committer: Geoffrey Métais

Close cursor

CID #1270676

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

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

diff --git a/vlc-android/src/org/videolan/vlc/MediaDatabase.java b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
index 6992a9c..ca7cfc4 100644
--- a/vlc-android/src/org/videolan/vlc/MediaDatabase.java
+++ b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
@@ -441,6 +441,7 @@ public class MediaDatabase {
             mDb.update(PLAYLIST_MEDIA_TABLE_NAME, cv, PLAYLIST_MEDIA_ID + "=?",
                     new String[] { c.getString(c.getColumnIndex(PLAYLIST_MEDIA_ID)) });
         }
+        c.close();
     }
 
     /**



More information about the Android mailing list