From a8fa3981f4581e82dab5cd932c9d446de55156a3 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 2 Oct 2022 17:02:10 +0200 Subject: [PATCH] source/Platform/Unix/Xlib.cpp: assert _priv::display in shutdown() --- source/Platform/Unix/Xlib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Platform/Unix/Xlib.cpp b/source/Platform/Unix/Xlib.cpp index bde34f8..41559e8 100644 --- a/source/Platform/Unix/Xlib.cpp +++ b/source/Platform/Unix/Xlib.cpp @@ -16,6 +16,7 @@ void init() void shutdown() { + assert(_priv::display != NULL); XCloseDisplay(_priv::display); _priv::display = NULL; }