Revert of "Merge pull request #4014 from sgjava:opencv-sgjava" (reverted from commit 52fa55a770cb07a6401aa6617b81f413d1165771)

This commit is contained in:
Andrey Pavlenko 2015-05-19 13:28:32 +03:00
parent 3136010e1a
commit d67d32af48
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -1530,7 +1530,7 @@ JNIEXPORT $rtype JNICALL Java_org_opencv_${module}_${clazz}_$fname
# finalize()
ci.j_code.write(
"""
public void delete() {
protected void delete() {
delete(nativeObj);
}
""" )