Skip to content

Commit

Permalink
Corrected the timeout unit from nano to second to fix the memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
syscl committed Aug 31, 2020
1 parent b4cc460 commit 67b5717
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CPUTuneCore/CPUTune/CPUTune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void CPUTune::readConfigAtRuntime(OSObject *owner, IOTimerEventSource *sender)
// restart the timer
if (timerSource && !this->isInactive()) {
// Don't use sender here which will cause MBP8,2(SANDYBRIDGE) KP
timerSource->setTimeout(updateInterval);
timerSource->setTimeoutMS(updateInterval);
}
}

Expand Down
4 changes: 2 additions & 2 deletions CPUTuneCore/CPUTune/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>2.2.5</string>
<string>2.2.6</string>
<key>CFBundleVersion</key>
<string>2.2.5</string>
<string>2.2.6</string>
<key>IOKitPersonalities</key>
<dict>
<key>CPUTune</key>
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CPUTune Changelog
=======================
#### v 2.2.6

- Corrected the timeout unit from nano to second to fix the memory leak

#### v2.2.5

- Added missing semicolon
Expand Down

0 comments on commit 67b5717

Please sign in to comment.