Skip to content

Commit

Permalink
Merge pull request opencv#4014 from sgjava:opencv-sgjava
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed May 14, 2015
2 parents a87e1c2 + 8b3b2a5 commit 52fa55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions modules/core/misc/java/src/java/core+Mat.java
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ public void release()
{

n_release(nativeObj);
n_delete(nativeObj);

return;
}
Expand Down Expand Up @@ -906,12 +907,6 @@ public static Mat zeros(Size size, int type)
return retVal;
}

@Override
protected void finalize() throws Throwable {
n_delete(nativeObj);
super.finalize();
}

// javadoc:Mat::toString()
@Override
public String toString() {
Expand Down
2 changes: 1 addition & 1 deletion modules/java/generator/gen_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ def gen_class(self, ci):
# finalize()
ci.j_code.write(
"""
protected void delete() {
public void delete() {
delete(nativeObj);
}
""" )
Expand Down

0 comments on commit 52fa55a

Please sign in to comment.