From: Ricardo Markiewicz Date: Mon, 24 Nov 2003 00:37:25 +0000 (+0000) Subject: * Se eliminar los LogicControl dentro de los elementos que los creaban X-Git-Tag: svn_import~188 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/b3b888e4ef034ddc35249ba97ea68ea3fb755ab2?ds=sidebyside * Se eliminar los LogicControl dentro de los elementos que los creaban Esto deberia dejar el modelo sin memory leaks :-) --- diff --git a/Model/src/exclusa.cpp b/Model/src/exclusa.cpp index ea62712..74ec906 100644 --- a/Model/src/exclusa.cpp +++ b/Model/src/exclusa.cpp @@ -16,6 +16,8 @@ Exclusa::Exclusa(const std::string &_name):Control(_name) Exclusa::~Exclusa() { + delete input; + delete output; } void Exclusa::update(int dir) diff --git a/Model/src/pump.cpp b/Model/src/pump.cpp index 679866f..d42bc58 100644 --- a/Model/src/pump.cpp +++ b/Model/src/pump.cpp @@ -18,6 +18,8 @@ Pump::Pump(const std::string &_name):Source(_name),Control(_name) Pump::~Pump() { + delete input; + delete output; } void Pump::update(int dir)