Skip to content

Commit 6c85d7c

Browse files
committed
Release event tap and run loop source after adding source
1 parent b1d1e44 commit 6c85d7c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

DiscreteScroll.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@
249249
buildSettings = {
250250
CODE_SIGN_STYLE = Automatic;
251251
COMBINE_HIDPI_IMAGES = YES;
252-
CURRENT_PROJECT_VERSION = 4;
252+
CURRENT_PROJECT_VERSION = 5;
253253
INFOPLIST_FILE = DiscreteScroll/Info.plist;
254254
LD_RUNPATH_SEARCH_PATHS = (
255255
"$(inherited)",
256256
"@executable_path/../Frameworks",
257257
);
258258
MACOSX_DEPLOYMENT_TARGET = 10.9;
259-
MARKETING_VERSION = 1.2.0;
259+
MARKETING_VERSION = 1.2.1;
260260
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DiscreteScroll;
261261
PRODUCT_NAME = "$(TARGET_NAME)";
262262
};
@@ -267,14 +267,14 @@
267267
buildSettings = {
268268
CODE_SIGN_STYLE = Automatic;
269269
COMBINE_HIDPI_IMAGES = YES;
270-
CURRENT_PROJECT_VERSION = 4;
270+
CURRENT_PROJECT_VERSION = 5;
271271
INFOPLIST_FILE = DiscreteScroll/Info.plist;
272272
LD_RUNPATH_SEARCH_PATHS = (
273273
"$(inherited)",
274274
"@executable_path/../Frameworks",
275275
);
276276
MACOSX_DEPLOYMENT_TARGET = 10.9;
277-
MARKETING_VERSION = 1.2.0;
277+
MARKETING_VERSION = 1.2.1;
278278
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DiscreteScroll;
279279
PRODUCT_NAME = "$(TARGET_NAME)";
280280
};

DiscreteScroll/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ int main(void)
9191
if (!source)
9292
displayNoticeAndExit(CFSTR("DiscreteScroll could not create a run loop source."));
9393
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
94+
CFRelease(tap);
95+
CFRelease(source);
9496
CFRunLoopRun();
9597

9698
return EXIT_SUCCESS;

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ As of May 2024, this application works on macOS versions 10.9–14.0.
1414

1515
### Installation
1616

17-
You may download the binary [here](https://github.com/emreyolcu/discrete-scroll/releases/download/v1.1.0/DiscreteScroll.zip).
17+
You may download the binary [here](https://github.com/emreyolcu/discrete-scroll/releases/download/v1.2.1/DiscreteScroll.zip).
1818
DiscreteScroll requires access to accessibility features.
1919
Upon startup, if it does not have access, it will prompt you and wait.
2020
You do not need to restart the application
@@ -88,6 +88,10 @@ even though you have previously granted it access, try the following:
8888

8989
### History
9090

91+
#### v1.2.1 (2024-06-05)
92+
93+
- **Fix:** Release event tap and run loop source after adding source.
94+
9195
#### v1.2.0 (2024-06-02)
9296

9397
- Remove accessibility observer once granted access.

0 commit comments

Comments
 (0)