diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2017-10-20 17:19:09 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2017-10-30 18:40:46 +0100 |
commit | 84c7d9c1c71d9cee9f50f96671032529b606cf04 (patch) | |
tree | 4f0441e2302e047fc909839e3bd7b70968d62dc4 /src/radeon_kms.c | |
parent | d588015f4f60ce270bcfd8433215fc981a84f143 (diff) |
Call TimerFree for timer created in LeaveVT
We were leaking the memory allocated by TimerSet.
(Ported from amdgpu commit 84aad09f18fed6b52b0c073f0bbd675a6de07807)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index f79af341..06c8a47f 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; } |