Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

few memory issue fixes proposal. #449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented May 2, 2022

wrong delete operator kind and leak.

wrong delete operator kind and leak.
@flowtron
Copy link
Contributor

flowtron commented May 3, 2022

The change in protocol.cpp is consistent with other char* by newstring(?) being deleted (serverbrowser,menus) although some people argue the compiler would handle this intelligently for trivial deconstructors. Speaking of deconstructors - the one for voteinfo takes care of deleting the action so your fix isn't actually needed.
Could you please also change the spacing to match up with (original) Cube1 coding style - so that should be "delete[] buf".
Thanks!!

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

Successfully merging this pull request may close these issues.

2 participants