[host] fix invalid LGMP free of cursor memory

This commit is contained in:
Geoffrey McRae 2021-01-21 15:53:06 +11:00
parent 536df254e0
commit 8778827a42

View File

@ -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);