Repository navigation
bugfix(gui): Only attach push button data to push button windows - #3480
tintinhamans wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughPush-button operations now check that a window is non-null and has the ChangesPush-button window guards
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
|
a112357 to
90622b0
Compare
GadgetButtonSetBorder,GadgetButtonDrawClock,GadgetButtonDrawInverseClock,GadgetButtonDrawOverlayImageandGadgetButtonSetDataallocate aPushButtonDataon whatever window they get. OnlyGadgetPushButtonSystemfrees it onGWM_DESTROY, so on any other window it leaks.Headless mode hits this every match: every window lookup resolves to the dummy window, whose system ignores
GWM_DESTROY. The debug leak report of a headless replay grows by six blocks per match from this alone.The setters now skip windows without
GWS_PUSH_BUTTON, same checksetControlCommandalready makes.