[PATCH xf86-video-ati 3/4] Call TimerFree for timer created in LeaveVT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michel Dänzer <michel.daenzer@xxxxxxx>

We were leaking the memory allocated by TimerSet.

(Ported from amdgpu commit 84aad09f18fed6b52b0c073f0bbd675a6de07807)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_kms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index f79af3415..06c8a47fb 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -2484,6 +2484,7 @@ CARD32 cleanup_black_fb(OsTimerPtr timer, CARD32 now, pointer data)
 	drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->fb, NULL);
     }
 
+    TimerFree(timer);
     return 0;
 }
 
-- 
2.14.2



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux