X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/950f83d0e71dc886fcf5be9889796c5b2a85fa4c..fb8d2fb83534b0ca76f81e6d107e38d002642a46:/Model/src/pump.cpp?ds=inline diff --git a/Model/src/pump.cpp b/Model/src/pump.cpp index fb355a0..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) @@ -36,7 +38,9 @@ void Pump::update(int dir) void Pump::simulate() { +#ifdef DEBUG std::cout << ((active && open)?" (funcionando)":" (apagada)") << std::endl; +#endif updated = false; }