Skip to content

Commit 1a9d633

Browse files
author
Mike McFadden
committed
Whoops, that should be CGGStateRelease
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.
1 parent 2082d82 commit 1a9d633

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Loading/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.2</string>
20+
<string>1.2.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>BNZI</string>
2323
<key>CFBundleVersion</key>
24-
<string>574</string>
24+
<string>578</string>
2525
<key>LSApplicationCategoryType</key>
2626
<string>public.app-category.utilities</string>
2727
<key>LSMinimumSystemVersion</key>

Loading/MenuDelegate.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ OSStatus eventHandler(EventHandlerCallRef inHandlerRef, EventRef inEvent, void *
475475

476476
extern void CGContextReplaceTopGState(CGContextRef, void *);
477477
CGContextReplaceTopGState(context, state);
478-
CFRelease(state);
478+
479+
extern void CGGStateRelease(void *);
480+
CGGStateRelease(state);
479481

480482
}
481483
}

0 commit comments

Comments
 (0)