diff options
Diffstat (limited to 'java/src/Ice/InputStreamI.java')
-rw-r--r-- | java/src/Ice/InputStreamI.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/java/src/Ice/InputStreamI.java b/java/src/Ice/InputStreamI.java index eeda0a961a2..bb67207e9be 100644 --- a/java/src/Ice/InputStreamI.java +++ b/java/src/Ice/InputStreamI.java @@ -29,10 +29,7 @@ public class InputStreamI implements InputStream finalize() throws Throwable { - if(_is != null) - { - _is.destroy(); - } + destroy(); } public Communicator @@ -222,8 +219,16 @@ public class InputStreamI implements InputStream { _is.readPendingObjects(); } - _is.destroy(); - _is = null; + } + + public void + destroy() + { + if(_is != null) + { + _is.destroy(); + _is = null; + } } private Communicator _communicator; |