aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/BluetoothManager.cxx
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-03-07 18:03:28 +0200
committerPetre Eftime <[email protected]>2016-03-07 18:03:28 +0200
commitcfb4a5c26dbdd2cf37b99153b1ed26435aea21c9 (patch)
tree58cfe5ba7a115650583e7418388ee259de537cb6 /java/jni/BluetoothManager.cxx
parent0850088c9f09ec2fcc201e0a4ee04c3ccda70880 (diff)
jni: Fix reference to stack object in getObject_setter
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/jni/BluetoothManager.cxx')
-rw-r--r--java/jni/BluetoothManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/BluetoothManager.cxx b/java/jni/BluetoothManager.cxx
index ecc56c7..441dc50 100644
--- a/java/jni/BluetoothManager.cxx
+++ b/java/jni/BluetoothManager.cxx
@@ -60,7 +60,7 @@ static void getObject_setter(JNIEnv *env,
}
else
{
- **name_to_write = from_jstring_to_string(env, name);
+ *name_to_write = new std::string(from_jstring_to_string(env, name));
}
if (!identifier)
@@ -69,7 +69,7 @@ static void getObject_setter(JNIEnv *env,
}
else
{
- **identifier_to_write = from_jstring_to_string(env, identifier);
+ *identifier_to_write = new std::string(from_jstring_to_string(env, identifier));
}
}