From e6eb078af496de8ba587e72ca430c002cd778a02 Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:07:21 +0200 Subject: [PATCH] Review UnloadAutomationEventList --- src/rcore.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }