From 8778827a4214e0bf734788bf39e9c0025390d0f3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 15:53:06 +1100 Subject: [PATCH] [host] fix invalid LGMP free of cursor memory --- host/src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/src/app.c b/host/src/app.c index 37ab6271..3668fc9e 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -652,7 +652,7 @@ fail_timer: fail_lgmp: for(int i = 0; i < LGMP_Q_FRAME_LEN; ++i) lgmpHostMemFree(&app.frameMemory[i]); - for(int i = 0; i < LGMP_Q_POINTER_LEN; ++i) + for(int i = 0; i < POINTER_SHAPE_BUFFERS; ++i) lgmpHostMemFree(&app.pointerMemory[i]); lgmpHostMemFree(&app.pointerShape); lgmpHostFree(&app.lgmp);