Unverified Commit 5369faa9 authored by Christopher Ryan Combs Jr's avatar Christopher Ryan Combs Jr Committed by GitHub
Browse files

Merge pull request #12 from SgStapleton/4736

Updated handling of memory leak in Gui.cpp. References #4736.
parents 624f929d b6cad763
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -56,7 +56,8 @@ namespace Isis {
    // needs changing...

    #ifdef Q_OS_LINUX
    if (!XOpenDisplay(NULL)) {
    Display *xDisplay = XOpenDisplay(NULL);
    if (!xDisplay) {
      std::cerr << "cannot connect to X server...\n\n"
          "Do you have an X server running?\n\n"
          "If yes then...\n\n"
@@ -68,6 +69,9 @@ namespace Isis {

      abort();
    }
    else {
      XCloseDisplay(xDisplay);
    }
    #endif
  }