Skip to content

Commit

Permalink
Merge pull request onevcat#309 from onevcat/fix/overreleasing-crash
Browse files Browse the repository at this point in the history
Application object Unretained Value
  • Loading branch information
onevcat committed May 4, 2016
2 parents 41d1b82 + ae2789f commit 2609c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ImageCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ extension UIApplication {
public static func kf_sharedApplication() -> UIApplication? {
let selector = NSSelectorFromString("sharedApplication")
guard respondsToSelector(selector) else { return nil }
return performSelector(selector).takeRetainedValue() as? UIApplication
return performSelector(selector).takeUnretainedValue() as? UIApplication
}
}
#endif

0 comments on commit 2609c2c

Please sign in to comment.