Skip to content

Commit

Permalink
Whoops, that should be CGGStateRelease
Browse files Browse the repository at this point in the history
Using CFRelease was causing Loading to crash all the time! Checked
CoreGraphics.framework and noticed a CGGStateRelease function, and
using that seems to fix the crash.
  • Loading branch information
Mike McFadden committed May 9, 2015
1 parent 2082d82 commit 1a9d633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Loading/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.2.1</string>
<key>CFBundleSignature</key>
<string>BNZI</string>
<key>CFBundleVersion</key>
<string>574</string>
<string>578</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
4 changes: 3 additions & 1 deletion Loading/MenuDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ OSStatus eventHandler(EventHandlerCallRef inHandlerRef, EventRef inEvent, void *

extern void CGContextReplaceTopGState(CGContextRef, void *);
CGContextReplaceTopGState(context, state);
CFRelease(state);

extern void CGGStateRelease(void *);
CGGStateRelease(state);

}
}
Expand Down

0 comments on commit 1a9d633

Please sign in to comment.