From b3b888e4ef034ddc35249ba97ea68ea3fb755ab2 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Mon, 24 Nov 2003 00:37:25 +0000 Subject: [PATCH] * Se eliminar los LogicControl dentro de los elementos que los creaban Esto deberia dejar el modelo sin memory leaks :-) --- Model/src/exclusa.cpp | 2 ++ Model/src/pump.cpp | 2 ++ 2 files changed, 4 insertions(+) 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) -- 2.43.0