Skip to content

Commit 48bc3af

Browse files
committed
Release event tap and run loop source after adding source
1 parent d8b16ea commit 48bc3af

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

DragScroll.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 = DragScroll/Info.plist;
254254
LD_RUNPATH_SEARCH_PATHS = (
255255
"$(inherited)",
256256
"@executable_path/../Frameworks",
257257
);
258258
MACOSX_DEPLOYMENT_TARGET = 10.9;
259-
MARKETING_VERSION = 1.3.0;
259+
MARKETING_VERSION = 1.3.1;
260260
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DragScroll;
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 = DragScroll/Info.plist;
272272
LD_RUNPATH_SEARCH_PATHS = (
273273
"$(inherited)",
274274
"@executable_path/../Frameworks",
275275
);
276276
MACOSX_DEPLOYMENT_TARGET = 10.9;
277-
MARKETING_VERSION = 1.3.0;
277+
MARKETING_VERSION = 1.3.1;
278278
PRODUCT_BUNDLE_IDENTIFIER = com.emreyolcu.DragScroll;
279279
PRODUCT_NAME = "$(TARGET_NAME)";
280280
};

DragScroll/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ int main(void)
191191
if (!source)
192192
displayNoticeAndExit(CFSTR("DragScroll could not create a run loop source."));
193193
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
194+
CFRelease(tap);
195+
CFRelease(source);
194196
CFRunLoopRun();
195197

196198
return EXIT_SUCCESS;

README.md

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

3232
### Installation
3333

34-
You may download the binary [here](https://github.com/emreyolcu/drag-scroll/releases/download/v1.2.0/DragScroll.zip).
34+
You may download the binary [here](https://github.com/emreyolcu/drag-scroll/releases/download/v1.3.1/DragScroll.zip).
3535
DragScroll requires access to accessibility features.
3636
Upon startup, if it does not have access, it will prompt you and wait.
3737
You do not need to restart the application
@@ -145,6 +145,10 @@ even though you have previously granted it access, try the following:
145145

146146
### History
147147

148+
#### v1.3.1 (2024-06-05)
149+
150+
- **Fix:** Release event tap and run loop source after adding source.
151+
148152
#### v1.3.0 (2024-06-02)
149153

150154
- Change "scale" to "speed".

0 commit comments

Comments
 (0)