Skip to content

cleenup code & fixes - #23

Open
defnax wants to merge 1 commit into
mainfrom
clean_code
Open

cleenup code & fixes#23
defnax wants to merge 1 commit into
mainfrom
clean_code

Conversation

@defnax

@defnax defnax commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator
  • Null check on dynamic_cast in recvItem()
  • OOB read guard in deserialise()
  • Null guards for rsIdentity/rsPeers/rsChats in constructors & autoJoinOfficialLobby()
  • Chess invite now only shows in the correct chat window (uncommented peer check)
  • Lobby chat no longer posts malformed messages
  • Plugin destructor cleans up allocated members
  • Thread-safe init with std::call_once
  • Proper widget cleanup in clearInviteButtons() and closeAll()
  • QToolButton now has a parent
  • Removed dead code (ping_all, unused flag/retVal)
  • Removed redundant data_size wire field
  • Eliminated double string copy in JSON parsing
  • Safer QMessageBox parent in rematch dialog
  • Restored the legacy wire field, deriving its value from the message size.
  • Moved the destructor into the .cpp so toaster cleanup runs correctly.

- Null check on `dynamic_cast` in `recvItem()`
- OOB read guard in `deserialise()`
- Null guards for `rsIdentity`/`rsPeers`/`rsChats` in constructors & `autoJoinOfficialLobby()`
- Chess invite now only shows in the correct chat window (uncommented peer check)
- Lobby chat no longer posts malformed messages
-  Plugin destructor cleans up allocated members
-  Thread-safe init with `std::call_once`
-  Proper widget cleanup in `clearInviteButtons()` and `closeAll()`
-  QToolButton now has a parent
-  Removed dead code (`ping_all`, unused `flag`/`retVal`)
-  Removed redundant `data_size` wire field
-  Eliminated double string copy in JSON parsing
-  Safer `QMessageBox` parent in rematch dialog
- Restored the legacy wire field, deriving its value from the message size.
- Moved the destructor into the .cpp so toaster cleanup runs correctly.
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.

1 participant