]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/bstream.h
checking that a wxWindow is of run-time type wxWindow is hopefully useless
[wxWidgets.git] / tests / streams / bstream.h
index a73b495384a1197d44a9cf6df35c86c133181ee6..fc2d6fb237ca4cdb35761cad8f0716dc2ca84a5d 100644 (file)
@@ -400,9 +400,12 @@ protected:
         DoDeleteInStream();
     }
     void DeleteOutStream()
-    {
+    {        
         if (m_pCurrentOut == NULL)
             return;
+        
+        CPPUNIT_ASSERT(m_pCurrentOut->Close());
+        
         delete m_pCurrentOut;
         m_pCurrentOut = NULL;
         // Incase something extra needs to be done.