mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Check account creator native ptr before unref in Java wrapper
This commit is contained in:
parent
5bcfd768a4
commit
4e6c089046
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ public class LinphoneAccountCreatorImpl implements LinphoneAccountCreator {
|
|||
|
||||
private native void unref(long ptr);
|
||||
protected void finalize() {
|
||||
unref(nativePtr);
|
||||
if (nativePtr!=0) unref(nativePtr);
|
||||
}
|
||||
|
||||
private native void setListener(long ptr, LinphoneAccountCreatorListener listener);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue