]> rtime.felk.cvut.cz Git - orte.git/commitdiff
Function ReleaseStringUTFChars() needs jstring as 2nd argument instead of PublProp...
authorjiri hubacek <jiri.hubacek@gmail.com>
Sun, 21 Sep 2014 10:12:34 +0000 (13:12 +0300)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 21 Sep 2014 12:07:03 +0000 (14:07 +0200)
orte/libjorte/JORTEPublicationPropertiesSet.c
orte/libjorte/JORTESubscriptionPropertiesSet.c

index f0f319dbdf11f4f41f3c3125eae4d2c2890ea7f2..bf24b3f6dbbdff711f9452ad226a04731255510c 100644 (file)
@@ -103,7 +103,7 @@ Java_org_ocera_orte_Publication_jORTEPublicationPropertiesSet
              str, publ_prop->topic);
     #endif
     // free the memory
-    (*env)->ReleaseStringUTFChars(env, obj_pp, str);
+    (*env)->ReleaseStringUTFChars(env, obj_str, str);
     /////////////////////////////////////////////////
     // set typeName
     fid = (*env)->GetFieldID(env,
@@ -133,7 +133,7 @@ Java_org_ocera_orte_Publication_jORTEPublicationPropertiesSet
              str, publ_prop->typeName);
     #endif
     // free the memory
-    (*env)->ReleaseStringUTFChars(env, obj_pp, str);
+    (*env)->ReleaseStringUTFChars(env, obj_str, str);
     /////////////////////////////////////////////////
     // set typeChecksum
     fid = (*env)->GetFieldID(env,cls_pp,"typeChecksum","I");
index 2ba47e5579c3f22668ca5efae75d4cb944f78329..06a5c4c79bd5544b77f0d419851eae53e1f4b248 100644 (file)
@@ -101,7 +101,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesSet
              str, subs_prop->topic);
     #endif
     // free the memory
-    (*env)->ReleaseStringUTFChars(env, obj_sp, str);
+    (*env)->ReleaseStringUTFChars(env, obj_str, str);
     /////////////////////////////////////////////////
     // set topic - typeName
     fid = (*env)->GetFieldID(env,
@@ -131,7 +131,7 @@ Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesSet
              str, subs_prop->typeName);
     #endif
     // free the memory
-    (*env)->ReleaseStringUTFChars(env, obj_sp, str);
+    (*env)->ReleaseStringUTFChars(env, obj_str, str);
     /////////////////////////////////////////////////
     // set topic - typeChecksum
     fid = (*env)->GetFieldID(env,cls_sp,"typeChecksum","I");