Review UnloadAutomationEventList

This commit is contained in:
Antonis Geralis 2023-12-20 14:07:21 +02:00 committed by GitHub
parent 68b6c79c3f
commit e6eb078af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2480,13 +2480,10 @@ AutomationEventList LoadAutomationEventList(const char *fileName)
}
// Unload automation events list from file
void UnloadAutomationEventList(AutomationEventList *list)
void UnloadAutomationEventList(AutomationEventList list)
{
#if defined(SUPPORT_AUTOMATION_EVENTS)
RL_FREE(list->events);
list->events = NULL;
list->count = 0;
list->capacity = 0;
#endif
}