File tree 1 file changed +3
-3
lines changed
library/src/main/java/com/bumptech/glide
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -590,7 +590,7 @@ public void clear(@NonNull View view) {
590
590
*
591
591
* @param target The Target to cancel loads for.
592
592
*/
593
- public synchronized void clear (@ Nullable final Target <?> target ) {
593
+ public void clear (@ Nullable final Target <?> target ) {
594
594
if (target == null ) {
595
595
return ;
596
596
}
@@ -617,8 +617,8 @@ private void untrackOrDelegate(@NonNull Target<?> target) {
617
617
// the corresponding Activity or Fragment is destroyed because retaining any reference to the
618
618
// RequestManager leaks memory. It's possible that there's some brief period of time during or
619
619
// immediately after onDestroy where this is reasonable, but I can't think of why.
620
- if (! isOwnedByUs && ! glide . removeFromManagers ( target ) && target .getRequest () != null ) {
621
- Request request = target . getRequest ();
620
+ Request request = target .getRequest ();
621
+ if (! isOwnedByUs && ! glide . removeFromManagers ( target ) && request != null ) {
622
622
target .setRequest (null );
623
623
request .clear ();
624
624
}
You can’t perform that action at this time.
0 commit comments