Browse Source

JNI-160: close() on obj with handle == 0 does nothing (no decrement either)

JNI-160
heck 4 months ago
parent
commit
9d7efca8a5
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/codegen/gen_java_Message.ysl2

+ 5
- 3
src/codegen/gen_java_Message.ysl2 View File

@ -69,9 +69,11 @@ tstylesheet {
}
public final void close() {
release(handle);
handle = 0;
instanceCount--;
if(handle != 0) {
release(handle);
handle = 0;
instanceCount--;
}
}
public static int getInstanceCount() {


Loading…
Cancel
Save