She can't eat while mouthbrooding, and if released directly back into the tank, with males, may be killed by her maternal instincts. She'll spawn quickly, and starvation's a major cause of death in many set ups. I gave females 3 weeks recovery, then moved the decorations to reintroduce them.
They're primitive mouthbrooders, with no post release broodcare (unlike more complex behaviour from river Cichlids). The male wants to spawn. He has zero involvement with fry (again, unlike riverine mouthbrooders where males will help the females by carrying young so they can eat). Malawis are pretty brutal at times, even though the 2 species you have are my favourites in the group, and the least aggressive.