Fixed a double free oopsie.

This commit is contained in:
profi200 2023-08-25 13:17:56 +02:00
parent 8db77d523e
commit ddba28b226
No known key found for this signature in database
GPG Key ID: FD2BAB7782919B0A
1 changed files with 3 additions and 5 deletions

View File

@ -986,11 +986,9 @@ void oafUpdate(void)
void oafFinish(void)
{
// frameReadyEvent deleted by this function.
// gbaGfxHandler() will automatically terminate.
LGYFB_deinit();
if(g_frameReadyEvent != 0)
{
deleteEvent(g_frameReadyEvent); // gbaGfxHandler() will automatically terminate.
g_frameReadyEvent = 0;
}
g_frameReadyEvent = 0;
LGY11_deinit();
}