Browse Source

Check for valid x11 display before using it

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.1
falkTX 3 years ago
parent
commit
ee82efa34e
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      source/utils/CarlaPluginUI.cpp

+ 5
- 5
source/utils/CarlaPluginUI.cpp View File

@@ -123,6 +123,9 @@ public:
{
CARLA_SAFE_ASSERT(! fIsVisible);

if (fDisplay == nullptr)
return;

if (fIsVisible)
{
XUnmapWindow(fDisplay, fHostWindow);
@@ -135,11 +138,8 @@ public:
fHostWindow = 0;
}

if (fDisplay != nullptr)
{
XCloseDisplay(fDisplay);
fDisplay = nullptr;
}
XCloseDisplay(fDisplay);
fDisplay = nullptr;
}

void show() override


Loading…
Cancel
Save