Skip to content

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