Commit 4e6c0890 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩 Committed by Simon Morlat

Check account creator native ptr before unref in Java wrapper

parent 5bcfd768
......@@ -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