diff --git a/dtool/src/prc/encryptStreamBuf.cxx b/dtool/src/prc/encryptStreamBuf.cxx index fe562e59e6..a8e7c04967 100644 --- a/dtool/src/prc/encryptStreamBuf.cxx +++ b/dtool/src/prc/encryptStreamBuf.cxx @@ -95,6 +95,10 @@ EncryptStreamBuf:: ~EncryptStreamBuf() { close_read(); close_write(); + +#ifdef PHAVE_IOSTREAM + delete[] eback(); +#endif } /**