CPP_Modules
CPP_Modules copied to clipboard
Leaks on M04 - Ex01
You forgot to delete the currrent Brain before copying it on the defintion of the copy assignment operator of cats and dogs, so when you make a copy of, let's say, a dog, using the '=' operator, you got leaks because there is a never deleted Brain.