mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix leak evaluating a cast
This commit is contained in:
parent
d63b2e0035
commit
925023e8c0
1 changed files with 2 additions and 1 deletions
|
@ -1745,7 +1745,8 @@ GSICUStringMatchesRegex(NSString *string, NSString *regex, NSStringCompareOption
|
|||
|
||||
if ([right isEqualToString: @"NSDate"])
|
||||
{
|
||||
return [[NSDate alloc] initWithTimeIntervalSinceReferenceDate: [left doubleValue]];
|
||||
return [NSDate dateWithTimeIntervalSinceReferenceDate:
|
||||
[left doubleValue]];
|
||||
}
|
||||
|
||||
NSLog(@"Cast to unknown type %@", right);
|
||||
|
|
Loading…
Reference in a new issue