Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

Pre-packaged filters crashes fix #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Classes/ImageFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ - (UIImage*) applyBlendFilter:(FilterBlendCallback)filter other:(UIImage*)other
int otherLength = CFDataGetLength(m_OtherDataRef);
CFMutableDataRef m_OtherDataRefEdit = CFDataCreateMutableCopy(NULL,otherLength,m_OtherDataRef);
CFRelease(m_OtherDataRef);
UInt8 * m_OtherPixelBuf = (UInt8 *) CFDataGetBytePtr(m_OtherDataRef);
UInt8 * m_OtherPixelBuf = (UInt8 *) CFDataGetBytePtr(m_OtherDataRefEdit);

int h = self.size.height;
int w = self.size.width;
Expand Down Expand Up @@ -781,7 +781,7 @@ - (UIImage*) applyConvolve:(NSArray*)kernel
UInt8 * m_PixelBuf = (UInt8 *) CFDataGetMutableBytePtr(m_DataRefEdit);

int outputLength = CFDataGetLength(m_OutDataRef);
CFMutableDataRef m_OutDataRefEdit = CFDataCreateMutableCopy(NULL,outputLength,m_DataRef);
CFMutableDataRef m_OutDataRefEdit = CFDataCreateMutableCopy(NULL,outputLength,m_OutDataRef);
CFRelease(m_OutDataRef);
UInt8 * m_OutPixelBuf = (UInt8 *) CFDataGetMutableBytePtr(m_OutDataRefEdit);

Expand Down