Free shared channel resources on power down

This commit is contained in:
Alessio Caiazza 2021-12-04 19:17:30 +01:00 committed by Niccolò Izzo
parent e2baf5a833
commit 75f5a0a159
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ void display_terminate()
{} /* Wait until current render finishes */
printf("Terminating SDL display emulator, goodbye!\n");
free(frameBuffer);
chan_close(&fb_sync);
chan_terminate(&fb_sync);
}
void display_renderRows(uint8_t startRow, uint8_t endRow)