mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
java: delete allocated array in JNI wrapper
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
9cfd1a9679
commit
45b83502a1
@ -26,6 +26,7 @@
|
|||||||
%typemap(out) float *getAcceleration {
|
%typemap(out) float *getAcceleration {
|
||||||
$result = JCALL1(NewFloatArray, jenv, 3);
|
$result = JCALL1(NewFloatArray, jenv, 3);
|
||||||
JCALL4(SetFloatArrayRegion, jenv, $result, 0, 3, $1);
|
JCALL4(SetFloatArrayRegion, jenv, $result, 0, 3, $1);
|
||||||
|
delete [] $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user