Commit 5a29ea62 authored by Simon Morlat's avatar Simon Morlat

fix java destruction of LinphoneCoreImpl

parent 8ca0fac2
......@@ -168,7 +168,7 @@ class LinphoneCoreImpl implements LinphoneCore {
}
protected void finalize() throws Throwable {
if (nativePtr!=0) destroy();
}
private boolean contextInitialized() {
......@@ -267,6 +267,8 @@ class LinphoneCoreImpl implements LinphoneCore {
return logs;
}
public synchronized void destroy() {
delete(nativePtr);
nativePtr=0;
}
private void isValid() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment