Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Leaks on M04 - Ex01 #3

Open
DinoMalin opened this issue Feb 2, 2024 · 0 comments
Open

Leaks on M04 - Ex01 #3

DinoMalin opened this issue Feb 2, 2024 · 0 comments

Comments

@DinoMalin
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant