Browse Source

found via strictMode: missing close

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 years ago
parent
commit
a6cf946c5a

+ 1 - 0
src/main/java/com/owncloud/android/datamodel/ArbitraryDataProvider.java

@@ -178,6 +178,7 @@ public class ArbitraryDataProvider {
                 if (value == null) {
                 if (value == null) {
                     Log_OC.e(TAG, "Arbitrary value could not be created from cursor");
                     Log_OC.e(TAG, "Arbitrary value could not be created from cursor");
                 } else {
                 } else {
+                    cursor.close();
                     return value;
                     return value;
                 }
                 }
             }
             }