Removed finalize() and added n_delete to release()
This commit is contained in:
parent
fe0ce9282a
commit
8b3b2a52f0
@ -640,6 +640,7 @@ public class Mat {
|
|||||||
{
|
{
|
||||||
|
|
||||||
n_release(nativeObj);
|
n_release(nativeObj);
|
||||||
|
n_delete(nativeObj);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -906,12 +907,6 @@ public class Mat {
|
|||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void finalize() throws Throwable {
|
|
||||||
n_delete(nativeObj);
|
|
||||||
super.finalize();
|
|
||||||
}
|
|
||||||
|
|
||||||
// javadoc:Mat::toString()
|
// javadoc:Mat::toString()
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user