Skip to content

Commit

Permalink
Fixing crash if effect's target was nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
sromanuk committed Feb 8, 2013
1 parent 84ed64f commit bcbb7e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/Source/GPUImageFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ void dataProviderUnlockCallback (void *info, const void *data, size_t size)
GPUImageFilter *filter = (__bridge_transfer GPUImageFilter*)info;

CVPixelBufferUnlockBaseAddress([filter renderTarget], 0);
CFRelease([filter renderTarget]);

if ([filter renderTarget]) {
CFRelease([filter renderTarget]);
}

[filter destroyFilterFBO];

Expand Down

0 comments on commit bcbb7e6

Please sign in to comment.