From c6dce44dd85c4ebae791756a76f6afbfbb0a5c28 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 28 Apr 2015 09:38:07 -0300 Subject: fixes in handling of DirAccess for resource path on Android, fixes #1447 --- platform/android/file_access_jandroid.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'platform/android/file_access_jandroid.cpp') diff --git a/platform/android/file_access_jandroid.cpp b/platform/android/file_access_jandroid.cpp index 2e3dd8289..971d4f84a 100644 --- a/platform/android/file_access_jandroid.cpp +++ b/platform/android/file_access_jandroid.cpp @@ -67,7 +67,6 @@ Error FileAccessJAndroid::_open(const String& p_path, int p_mode_flags) { jstring js = env->NewStringUTF(path.utf8().get_data()); int res = env->CallIntMethod(io,_file_open,js,p_mode_flags&WRITE?true:false); - env->DeleteLocalRef(js); if (res<=0) -- cgit v1.2.3-70-g09d2