diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-04-08 18:14:32 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-04-08 18:15:45 +0200 |
commit | c4b86c6c4390a92b7848b999ffd2c2698f44ab39 (patch) | |
tree | cd8bb754e72a5089e55645dd8b0da2a825d698b1 /karm | |
parent | c9a29849cb166e6711c7704dafd868159fd6cd58 (diff) | |
download | tdepim-c4b86c6c4390a92b7848b999ffd2c2698f44ab39.tar.gz tdepim-c4b86c6c4390a92b7848b999ffd2c2698f44ab39.zip |
Fix memory leak in karm idle detector
This resolves Bug 1438
Diffstat (limited to 'karm')
-rw-r--r-- | karm/idletimedetector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/karm/idletimedetector.cpp b/karm/idletimedetector.cpp index 74aad7da8..110eacd06 100644 --- a/karm/idletimedetector.cpp +++ b/karm/idletimedetector.cpp @@ -19,6 +19,7 @@ IdleTimeDetector::IdleTimeDetector(int maxIdle) if(XScreenSaverQueryExtension(tqt_xdisplay(), &event_base, &error_base)) { _idleDetectionPossible = true; + _mit_info = XScreenSaverAllocInfo (); } else { @@ -44,7 +45,6 @@ void IdleTimeDetector::check() #ifdef HAVE_LIBXSS if (_idleDetectionPossible) { - _mit_info = XScreenSaverAllocInfo (); XScreenSaverQueryInfo(tqt_xdisplay(), tqt_xrootwin(), _mit_info); int idleSeconds = (_mit_info->idle/1000); if (idleSeconds >= _maxIdle) |