[md][bugfix] Fix memory leak due to cyclic shared_ptr dependency couplingmanager<->problem
The coupling manager had a shared_ptr to the problem and the problem to the coupling manager. This cyclic dependency leads to neither the problem nor the coupling manager being destroyed -> huge memory leaks.
TODO:
-
fix embedded coupling managers -
fix facet coupling managers -
fix boundary coupling managers -
check with valgrind that there are no memory leaks
Fixes #557 (closed).
Edited by Timo Koch