Skip to content

Commit

Permalink
* cocoa.m: window_dealloc() calls [window close] instead of [window r…
Browse files Browse the repository at this point in the history
…elease].
  • Loading branch information
arakiken committed Sep 29, 2024
1 parent 92fa70f commit f3474e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-09-29 Araki Ken <arakiken@users.sf.net>

* cocoa.m: window_dealloc() calls [window close] instead of [window release].

2024-09-08 Araki Ken <arakiken@users.sf.net>

* im_fcitx.c:
Expand Down
3 changes: 2 additions & 1 deletion baselib/src/bl_pty_streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ pid_t bl_pty_fork(int *master, int *slave) {
if ((mode = fcntl(*master, F_GETFL, 0)) == -1 ||
((mode & O_NDELAY) == 0 && fcntl(*master, F_SETFL, mode | O_NDELAY) == -1)) {
#ifdef DEBUG
bl_debug_printf(BL_DEBUG_TAG " Failed to set pty master non-blocking.\n");
bl_debug_printf(BL_DEBUG_TAG " Failed to set pty master non-blocking. (current mode %x)\n",
mode);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion uitoolkit/quartz/cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ void window_alloc(ui_window_t *root) {
[nib release];
}

void window_dealloc(NSWindow *window) { [window release]; }
void window_dealloc(NSWindow *window) { [window close]; }

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

0 comments on commit f3474e1

Please sign in to comment.