Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Bogdan Poplauschi
2017-08-08 13:19:20 +0300
Commit
2f892f968fe03e82f468adf9df20fd6b06254aea
1 parent
4cfb2e4b
Attempt to fix #1883 by using a weakSelf reference to remove from callbackBlocks…
… (on the barrierQueue)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
SDWebImage/SDWebImageDownloaderOperation.m
SDWebImage/SDWebImageDownloaderOperation.m
View file @
2f892f9
...
...
@@ -223,8 +223,9 @@ typedef NSMutableDictionary<NSString *, id> SDCallbacksDictionary;
}
-
(
void
)
reset
{
__weak
typeof
(
self
)
weakSelf
=
self
;
dispatch_barrier_async
(
self
.
barrierQueue
,
^
{
[
s
elf
.
callbackBlocks
removeAllObjects
];
[
weakS
elf
.
callbackBlocks
removeAllObjects
];
});
self
.
dataTask
=
nil
;
self
.
imageData
=
nil
;
...
...
Please
register
or
login
to post a comment