Commit 0f766cd5 authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

Revert "Updated handling of memory leak in Gui.cpp to fix pull request. Refer…"

parent f3b5063a
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
@@ -56,8 +56,7 @@ namespace Isis {
    // needs changing...

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

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

+0 −2
Original line number Diff line number Diff line
@@ -85,8 +85,6 @@ namespace Isis {
   *                         setup. Fixes #4731.
   *  @history 2017-05-19 Marjorie Hahn - Applied font style and font size from the 
   *                         IsisPreferences file. Fixes #198.
   *  @history 2018-01-08 Summer Stapleton - Fixed memory leak involved in the X-forwarding check.
   *                         Fixes #4736.
   */

  class Gui : public QMainWindow {