diff options
author | 2017-06-19 10:16:20 +0200 | |
---|---|---|
committer | 2017-08-08 17:24:00 +0200 | |
commit | c895f9ff2931f647d7309c841054487cd4fe898c (patch) | |
tree | 1b90e844e8d45d7a1b74b658cfd6da66715e9a9c /src | |
parent | 7fdd67a957d9e06016970e823d006a36f4b52c73 (diff) |
do not initialize registry when display is unavailable
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-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() {} |