Skip to content

Commit

Permalink
hooksystem: Fix miscalculation in comment (hyprwm#5442)
Browse files Browse the repository at this point in the history
  • Loading branch information
sundhaug92 authored and lisuke committed Apr 15, 2024
1 parent 83465ad commit c0d0753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/HookSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static uintptr_t seekNewPageAddr() {
uint64_t CHookSystem::getAddressForTrampo() {
// yes, technically this creates a memory leak of 64B every hook creation. But I don't care.
// tracking all the users of the memory would be painful.
// Nobody will hook 100k times, and even if, that's only 640kB. Nothing.
// Nobody will hook 100k times, and even if, that's only 6.4 MB. Nothing.

SAllocatedPage* page = nullptr;
for (auto& p : pages) {
Expand Down

0 comments on commit c0d0753

Please sign in to comment.