X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/be1908f8097dbbc871bfd7c55432de43d25647b7..cc77948bedbd851e009ad3b8a421dea93c3ceeff:/Model/src/pump.cpp?ds=sidebyside diff --git a/Model/src/pump.cpp b/Model/src/pump.cpp index 679866f..93b8b72 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) @@ -25,6 +27,7 @@ void Pump::update(int dir) if (updated) return; // Me fijo si me tengo que apagar automaticamente open = input->get_output(); + std::cout << name << " open = " << (open?"true":"false") << std::endl; if (active && open) actual_flow = max_flow; else