IGRFilterCombine
IGRFilterCombine copied to clipboard
avoid crashing: when filter combine is already deinitialized, but still processing (weak==nil)
I am getting crashed while doing simple steps:
- I have 2 view controllers first is main, second is filter controller
- present filter controller from main controller
- previews of filters are starting processing
- before processing complete click "close" button to dismiss filter controller
- callback "processedPreviewImagesCompletion" or "processedImagesCompletion" will now crash the app, when processing finished, because filter controller is already deallocated
The same issue could appear in all other callbacks with weak. These two are the most commonly used and with this commit it will not crash the app anymore.