From 6cfed00a42db3d1eaf28bd804709fe2290c2a0bc Mon Sep 17 00:00:00 2001 From: Izaaz Yunus Date: Fri, 16 Feb 2024 17:02:35 -0800 Subject: [PATCH] fix: Copy extra params to prevent deallocation (#483) --- Sources/Amplitude/Amplitude.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Amplitude/Amplitude.m b/Sources/Amplitude/Amplitude.m index 12ecda99..90f84a2d 100644 --- a/Sources/Amplitude/Amplitude.m +++ b/Sources/Amplitude/Amplitude.m @@ -680,6 +680,7 @@ - (void)logEvent:(NSString *)eventType withEventProperties:(NSDictionary *)event userProperties = [userProperties copy]; groups = [groups copy]; groupProperties = [groupProperties copy]; + extra = [extra copy]; BOOL inForeground = _inForeground; [self runOnBackgroundQueue:^{