changeset 13996:694a7af7eaab

close X display when done with it * display.cc (display_info::init): Call XCloseDisplay when finished with display.
author John W. Eaton <jwe@octave.org>
date Mon, 05 Dec 2011 01:10:44 -0500
parents 8a566473361e
children 6e9bf84dec3c
files src/display.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/display.cc	Mon Dec 05 00:30:54 2011 -0500
+++ b/src/display.cc	Mon Dec 05 01:10:44 2011 -0500
@@ -120,6 +120,8 @@
                 }
               else
                 warning ("X11 display has no default screen");
+
+              XCloseDisplay (display);
             }
           else
             warning ("unable to open X11 DISPLAY");