Permalink
Browse files

close cursor properly in uploadactivity

  • Loading branch information...
1 parent 690b054 commit 1820c15b84166c303c5ade285740c37c6f636dfa @shlusiak committed Apr 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/de/saschahlusiak/frupic/utils/UploadActivity.java
@@ -256,6 +256,8 @@ protected void onCreate(Bundle savedInstanceState) {
cursor.moveToFirst();
fileName = cursor.getString(columnIndex);
}
+ if (cursor != null)
+ cursor.close();
}
if (fileName == null)
fileName = "[Unknown]";

0 comments on commit 1820c15

Please sign in to comment.