CPP_Modules icon indicating copy to clipboard operation
CPP_Modules copied to clipboard

Leaks on M04 - Ex01

Open DinoMalin opened this issue 5 months ago • 0 comments

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.

DinoMalin avatar Feb 02 '24 22:02 DinoMalin