GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crashfix: SDImageIOAnimatedCoder crash · SDWebImage/SDWebImage@88a57ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • SDWebImage/Private
    • SDImageFramePool.m
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎SDWebImage/Private/SDImageFramePool.m‎

Copy file name to clipboardExpand all lines: SDWebImage/Private/SDImageFramePool.m
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,16 @@ - (void)prefetchFrameAtIndex:(NSUInteger)index {
109109

110110
if (self.fetchQueue.operationCount == 0) {
111111
// Prefetch next frame in background queue
112-
id<SDAnimatedImageProvider> animatedProvider = self.provider;
113112
@weakify(self);
114113
NSOperation *operation = [NSBlockOperation blockOperationWithBlock:^{
115114
@strongify(self);
116115
if (!self) {
117116
return;
118117
}
118+
id<SDAnimatedImageProvider> animatedProvider = self.provider;
119+
if (!animatedProvider) {
120+
return;
121+
}
119122
UIImage *frame = [animatedProvider animatedImageFrameAtIndex:index];
120123

121124
[self setFrame:frame atIndex:index];

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.