Skip to content

Properly resolve MainWindowHook memory leak#8

Open
zedxxx wants to merge 1 commit into
plashenkov:masterfrom
zedxxx:master
Open

Properly resolve MainWindowHook memory leak#8
zedxxx wants to merge 1 commit into
plashenkov:masterfrom
zedxxx:master

Conversation

@zedxxx

@zedxxx zedxxx commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

MainWindowHook is designed as a "class" method, and is fully compatible with the "of object" TWindowHook declaration.

However, for a class method, we must explicitly specify the base class TTBCustomToolbar.MainWindowHook, otherwise the hook removal might fail if it is called by a descendant class.

MainWindowHook is designed as a "class" method, and is fully
compatible with the "of object" TWindowHook declaration.

However, for a class method, we must explicitly specify the base class
TTBCustomToolbar.MainWindowHook, otherwise the hook removal might
fail if it is called by a descendant class.
@zedxxx

zedxxx commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

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