Commit 411e8fdb authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Check account creator native ptr before unref in Java wrapper

parent b9829e15
......@@ -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);
......
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