Skip to content

Commit 96f6631

Browse files
author
huizzzhou
committed
fix: string delete error
1 parent 549ceec commit 96f6631

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

dart_native/android/src/main/jni/dart_native.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ void *invokeNativeMethodNeo(void *classPtr, char *methodName, void **args, char
240240
jstring javaString = (jstring)curEnv->CallObjectMethodA(object, method, argValues);
241241
jboolean isCopy = JNI_FALSE;
242242
nativeInvokeResult = (char *) curEnv->GetStringUTFChars(javaString, &isCopy);
243-
if (isCopy == JNI_TRUE) {
244-
NSLog("DeleteLocalRef");
245-
curEnv->DeleteLocalRef(javaString);
246-
}
247243
}
248244
else {
249245
jobject obj = curEnv->NewGlobalRef(curEnv->CallObjectMethodA(object, method, argValues));

dart_native/example/lib/android/unit_test.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ testAndroid(RuntimeStub stub) {
9696
print("item $item");
9797
}
9898

99-
// List list = stub.getStringList(["w", "q", "e"]);
100-
// for (String item in list) {
101-
// print("item $item");
102-
// }
103-
10499
list = stub.getCycleList([[1, 2, 3], [4, 5, 6], [7, 8, 9]]);
105100
for (List items in list) {
106101
for (int item in items) {

0 commit comments

Comments
 (0)