Merge pull request #4014 from sgjava:opencv-sgjava
This commit is contained in:
commit
52fa55a770
@ -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() {
|
||||
|
@ -1530,7 +1530,7 @@ JNIEXPORT $rtype JNICALL Java_org_opencv_${module}_${clazz}_$fname
|
||||
# finalize()
|
||||
ci.j_code.write(
|
||||
"""
|
||||
protected void delete() {
|
||||
public void delete() {
|
||||
delete(nativeObj);
|
||||
}
|
||||
""" )
|
||||
|
Loading…
Reference in New Issue
Block a user