From e80fcd8648571166f2ca7769425fd6b4ad206c0e Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 8 Aug 2019 14:12:22 +0200 Subject: [PATCH] Remove VHDL driver extension/property after use. * In CRL::vstDriver(), remove the Vhdl::EntityExtension right after driving the file. This avoid keeping in memory a mostly usnused structure and solve the "second write after modification" problem. --- crlcore/src/ccore/alliance/vst/VstDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crlcore/src/ccore/alliance/vst/VstDriver.cpp b/crlcore/src/ccore/alliance/vst/VstDriver.cpp index 9a604c41..c5bfbb1e 100644 --- a/crlcore/src/ccore/alliance/vst/VstDriver.cpp +++ b/crlcore/src/ccore/alliance/vst/VstDriver.cpp @@ -49,6 +49,8 @@ namespace CRL { vhdlEntity->toEntity( ccelltest ); ccelltest << endl; ccelltest.close(); + + Vhdl::EntityExtension::destroy( cell ); }