diff options
-rw-r--r-- | src/wayland.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index c2f55fa..ce20978 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -22,7 +22,7 @@ display::display() logdebug("wl::display ~display @ %p", d); wl_display_disconnect(d); })), - r(std::make_unique<struct registry>(d.get())) {} + r(!d ? nullptr : std::make_unique<struct registry>(d.get())) {} display::~display() {} |