Skip to content

Commit

Permalink
Update IOSNative.m
Browse files Browse the repository at this point in the history
Fixed possible segfault on iOS.
  • Loading branch information
shannah authored May 31, 2023
1 parent 2a7b82e commit 90b001f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ports/iOSPort/nativeSources/IOSNative.m
Original file line number Diff line number Diff line change
Expand Up @@ -6862,8 +6862,8 @@ JAVA_INT java_util_TimeZone_getTimezoneOffset___java_lang_String_int_int_int_int
[comps setMinute:timeOfDayMillis/60000];
NSCalendar* cal = [NSCalendar currentCalendar];
NSDate *date = [cal dateFromComponents:comps];
[comps release];
JAVA_INT result = [tzone secondsFromGMTForDate:date] * 1000;
[comps release];
POOL_END();
return result;
}
Expand Down

0 comments on commit 90b001f

Please sign in to comment.