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
9 years ago
Committed by
Bogdan Poplauschi
9 years ago
Commit
c4dd0eee49ca0282f413be1fcca1c57f5376d0b4
1 parent
3364a981
Opening bracket styling
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
SDWebImage/SDImageCache.m
SDWebImage/UIImage+WebP.m
SDWebImage/SDImageCache.m
View file @
c4dd0ee
...
...
@@ -17,8 +17,7 @@
@implementation
AutoPurgeCache
-
(
id
)
init
{
-
(
instancetype
)
init
{
self
=
[
super
init
];
if
(
self
)
{
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
removeAllObjects
)
name
:
UIApplicationDidReceiveMemoryWarningNotification
object
:
nil
];
...
...
@@ -26,8 +25,7 @@
return
self
;
}
-
(
void
)
dealloc
{
-
(
void
)
dealloc
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
name
:
UIApplicationDidReceiveMemoryWarningNotification
object
:
nil
];
}
...
...
SDWebImage/UIImage+WebP.m
View file @
c4dd0ee
...
...
@@ -16,8 +16,7 @@
#endif
// Callback for CGDataProviderRelease
static
void
FreeImageData
(
void
*
info
,
const
void
*
data
,
size_t
size
)
{
static
void
FreeImageData
(
void
*
info
,
const
void
*
data
,
size_t
size
)
{
free
((
void
*
)
data
);
}
...
...
Please
register
or
login
to post a comment