X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e5f6c1c4f79af395e094be3fa2957394e2e5825..a0573e8eb0096192335c61ddf7f4895d98c89813:/tests/streams/bstream.h diff --git a/tests/streams/bstream.h b/tests/streams/bstream.h index a73b495384..fc2d6fb237 100644 --- a/tests/streams/bstream.h +++ b/tests/streams/bstream.h @@ -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.