Skip to content

Commit

Permalink
fix: Copy extra params to prevent deallocation (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaz committed Feb 17, 2024
1 parent 55393c1 commit 6cfed00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Amplitude/Amplitude.m
Original file line number Diff line number Diff line change
Expand Up @@ -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:^{
Expand Down

0 comments on commit 6cfed00

Please sign in to comment.