diff --git a/src/rcore.c b/src/rcore.c index 8691be304..eb4dd3089 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -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 }