Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
John Pavlick committed Nov 24, 2016
1 parent e5e4ee5 commit 104f222
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions FXBlurView/FXBlurView.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ - (UIImage *)blurredImageWithRadius:(CGFloat)radius iterations:(NSUInteger)itera
buffer1.data = malloc(bytes);
buffer2.data = malloc(bytes);

if (NULL == buffer1.data || NULL == buffer2.data) {
if (NULL == buffer1.data || NULL == buffer2.data)
{
free(buffer1.data);
free(buffer2.data);
return self;
Expand All @@ -92,8 +93,9 @@ - (UIImage *)blurredImageWithRadius:(CGFloat)radius iterations:(NSUInteger)itera
//copy image data
CGDataProviderRef provider = CGImageGetDataProvider(imageRef);
CFDataRef dataSource = CGDataProviderCopyData(provider);
if (NULL == dataSource) {
return self;
if (NULL == dataSource)
{
return self;
}
const UInt8 *dataSourceData = CFDataGetBytePtr(dataSource);
CFIndex dataSourceLength = CFDataGetLength(dataSource);
Expand Down

0 comments on commit 104f222

Please sign in to comment.