Skip to content

Commit f3474e1

Browse files
committed
* cocoa.m: window_dealloc() calls [window close] instead of [window release].
1 parent 92fa70f commit f3474e1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-09-29 Araki Ken <[email protected]>
2+
3+
* cocoa.m: window_dealloc() calls [window close] instead of [window release].
4+
15
2024-09-08 Araki Ken <[email protected]>
26

37
* im_fcitx.c:

baselib/src/bl_pty_streams.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ pid_t bl_pty_fork(int *master, int *slave) {
149149
if ((mode = fcntl(*master, F_GETFL, 0)) == -1 ||
150150
((mode & O_NDELAY) == 0 && fcntl(*master, F_SETFL, mode | O_NDELAY) == -1)) {
151151
#ifdef DEBUG
152-
bl_debug_printf(BL_DEBUG_TAG " Failed to set pty master non-blocking.\n");
152+
bl_debug_printf(BL_DEBUG_TAG " Failed to set pty master non-blocking. (current mode %x)\n",
153+
mode);
153154
#endif
154155
}
155156

uitoolkit/quartz/cocoa.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ void window_alloc(ui_window_t *root) {
14661466
[nib release];
14671467
}
14681468

1469-
void window_dealloc(NSWindow *window) { [window release]; }
1469+
void window_dealloc(NSWindow *window) { [window close]; }
14701470

14711471
void window_resize(NSWindow *window, int width, int height) {
14721472
CGRect wr = window.frame;

0 commit comments

Comments
 (0)