Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
5cde30da
Commit
5cde30da
authored
May 02, 2017
by
Simon Morlat
Browse files
fix crash with ErrorInfoImpl due to missing symbols
parent
e1123620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+18
-0
java/impl/org/linphone/core/ErrorInfoImpl.java
java/impl/org/linphone/core/ErrorInfoImpl.java
+6
-1
No files found.
coreapi/linphonecore_jni.cc
View file @
5cde30da
...
...
@@ -7445,6 +7445,24 @@ JNIEXPORT jstring JNICALL Java_org_linphone_core_ErrorInfoImpl_getDetails(JNIEnv
return
tmp
?
env
->
NewStringUTF
(
tmp
)
:
NULL
;
}
/*
* Class: org_linphone_core_ErrorInfoImpl
* Method: ref
* Signature: (J);
*/
JNIEXPORT
void
JNICALL
Java_org_linphone_core_ErrorInfoImpl_ref
(
JNIEnv
*
env
,
jobject
jobj
,
jlong
ei
){
linphone_error_info_ref
((
LinphoneErrorInfo
*
)
ei
);
}
/*
* Class: org_linphone_core_ErrorInfoImpl
* Method: unref
* Signature: (J);
*/
JNIEXPORT
void
JNICALL
Java_org_linphone_core_ErrorInfoImpl_unref
(
JNIEnv
*
env
,
jobject
jobj
,
jlong
ei
){
linphone_error_info_unref
((
LinphoneErrorInfo
*
)
ei
);
}
#ifdef __cplusplus
}
#endif
...
...
java/impl/org/linphone/core/ErrorInfoImpl.java
View file @
5cde30da
...
...
@@ -98,5 +98,10 @@ public class ErrorInfoImpl implements ErrorInfo {
return
getWarnings
();
}
protected
void
finalize
()
throws
Throwable
{
if
(
mNativePtr
!=
0
){
unref
(
mNativePtr
);
mNativePtr
=
0
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment