changeset 358:558cbe388376

Same change as in dwt-win. Thx to Craig Slusher.
author Frank Benoit <benoit@tionex.de>
date Tue, 27 Jan 2009 10:09:26 +0100
parents a229cf799859
children fd2409fb852e
files dwt/dwthelper/BufferedInputStream.d
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/dwthelper/BufferedInputStream.d	Sun Jan 04 02:50:29 2009 -0500
+++ b/dwt/dwthelper/BufferedInputStream.d	Tue Jan 27 10:09:26 2009 +0100
@@ -98,7 +98,9 @@
     }
 
     public void close(){
-        this.istr.close();
+        if( this.istr !is null ){
+            this.istr.close();
+        }
     }