From: Michel Dänzer <[email protected]>

We were leaking the memory allocated by TimerSet.

(Ported from amdgpu commit 84aad09f18fed6b52b0c073f0bbd675a6de07807)

Signed-off-by: Michel Dänzer <[email protected]>
---
 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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to