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:
Luflosi 2020-09-28 12:18:39 +02:00
parent 470abc25e4
commit 8ef53aa363
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -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;