Skip to content

Commit d1d7af6

Browse files
committed
fix: 클립보드 nil 반환 시 메모리 해제 크래시 수정 (v2.6.2)
1 parent e424ab1 commit d1d7af6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/sword-macro/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func init() {
1919
runtime.LockOSThread()
2020
}
2121

22-
const VERSION = "2.6.1"
22+
const VERSION = "2.6.2"
2323

2424
func main() {
2525
// Windows 콘솔 ANSI 지원 활성화 및 UTF-8 설정

internal/input/input_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const char* getClipboard() {
7979
NSPasteboard* pb = [NSPasteboard generalPasteboard];
8080
NSString* str = [pb stringForType:NSPasteboardTypeString];
8181
if (str == nil) {
82-
return "";
82+
return NULL;
8383
}
8484
return strdup([str UTF8String]); // caller must free
8585
}

0 commit comments

Comments
 (0)