mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-06 09:48:27 +00:00
Remove unnecessary condition
According to the python documentation, `Py_CLEAR()` has no effect when the argument is `NULL`, see https://docs.python.org/3/c-api/refcounting.html#c.Py_CLEAR.
This commit is contained in:
parent
470abc25e4
commit
8ef53aa363
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ cleanup() {
|
|||
|
||||
if (dockMenu) [dockMenu release];
|
||||
dockMenu = nil;
|
||||
if (notification_activated_callback) Py_CLEAR(notification_activated_callback);
|
||||
Py_CLEAR(notification_activated_callback);
|
||||
drain_pending_notifications(NO);
|
||||
free(notification_queue.notifications);
|
||||
notification_queue.notifications = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue