]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEPublicationPropertiesSet.c
Function ReleaseStringUTFChars() needs jstring as 2nd argument instead of PublProp...
[orte.git] / orte / libjorte / JORTEPublicationPropertiesSet.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");