diff --git a/src/engine/client/notifications.cpp b/src/engine/client/notifications.cpp index 8153815d7..4cacd6519 100644 --- a/src/engine/client/notifications.cpp +++ b/src/engine/client/notifications.cpp @@ -17,8 +17,11 @@ void NotificationsUninit() void NotificationsNotify(const char *pTitle, const char *pMessage) { NotifyNotification *pNotif = notify_notification_new(pTitle, pMessage, "ddnet"); - notify_notification_show(pNotif, NULL); - g_object_unref(G_OBJECT(pNotif)); + if(pNotif) + { + notify_notification_show(pNotif, NULL); + g_object_unref(G_OBJECT(pNotif)); + } } #else void NotificationsInit()