Merge pull request #3480 from dreampiggy/bugfix/data_copy_crash

Remove the unused extra copy for `SDAnimatedImage` data initializer
This commit is contained in:
DreamPiggy 2023-02-06 21:50:28 +08:00 committed by GitHub
commit eecc7e4380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -124,7 +124,6 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
if (!data || data.length == 0) {
return nil;
}
data = [data copy]; // avoid mutable data
id<SDAnimatedImageCoder> animatedCoder = nil;
for (id<SDImageCoder>coder in [SDImageCodersManager sharedManager].coders.reverseObjectEnumerator) {
if ([coder conformsToProtocol:@protocol(SDAnimatedImageCoder)]) {