summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/storage
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2012-06-26 17:56:47 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2012-06-26 17:56:47 +0200
commit81295bc07f7c558e18c02b03421bdbfd3d3c28c6 (patch)
tree5c2befecb2dd94d19704a74d6ef057333ab9db37 /src/de/podfetcher/storage
parentf4fa5dce5f1943d1a5724d529f6bd0be35674cb3 (diff)
downloadAntennaPod-81295bc07f7c558e18c02b03421bdbfd3d3c28c6.zip
Made startup loading more stable
Diffstat (limited to 'src/de/podfetcher/storage')
-rw-r--r--src/de/podfetcher/storage/PodDBAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/de/podfetcher/storage/PodDBAdapter.java b/src/de/podfetcher/storage/PodDBAdapter.java
index d12f225e8..4169d4570 100644
--- a/src/de/podfetcher/storage/PodDBAdapter.java
+++ b/src/de/podfetcher/storage/PodDBAdapter.java
@@ -472,6 +472,7 @@ public class PodDBAdapter {
.getColumnIndex(KEY_FILE_URL)), cursor.getString(cursor
.getColumnIndex(KEY_DOWNLOAD_URL)), cursor.getInt(cursor
.getColumnIndex(KEY_DOWNLOADED)) > 0);
+ cursor.close();
return media;
}
@@ -492,6 +493,7 @@ public class PodDBAdapter {
.getColumnIndex(KEY_FILE_URL)), cursor.getString(cursor
.getColumnIndex(KEY_DOWNLOAD_URL)), cursor.getInt(cursor
.getColumnIndex(KEY_DOWNLOADED)) > 0);
+ cursor.close();
return image;
}