Commit 8b3b2a52 authored by sgjava's avatar sgjava

Removed finalize() and added n_delete to release()

parent fe0ce928
......@@ -640,6 +640,7 @@ public class Mat {
{
n_release(nativeObj);
n_delete(nativeObj);
return;
}
......@@ -906,12 +907,6 @@ public class Mat {
return retVal;
}
@Override
protected void finalize() throws Throwable {
n_delete(nativeObj);
super.finalize();
}
// javadoc:Mat::toString()
@Override
public String toString() {
......
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