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
@ -536,7 +536,7 @@ cleanup() {
|
|||||||
|
|
||||||
if (dockMenu) [dockMenu release];
|
if (dockMenu) [dockMenu release];
|
||||||
dockMenu = nil;
|
dockMenu = nil;
|
||||||
if (notification_activated_callback) Py_CLEAR(notification_activated_callback);
|
Py_CLEAR(notification_activated_callback);
|
||||||
drain_pending_notifications(NO);
|
drain_pending_notifications(NO);
|
||||||
free(notification_queue.notifications);
|
free(notification_queue.notifications);
|
||||||
notification_queue.notifications = NULL;
|
notification_queue.notifications = NULL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user