comparison src/display.cc @ 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 7dd7cccf0757
children 72c96de7a403
comparison
equal deleted inserted replaced
13995:8a566473361e 13996:694a7af7eaab
118 rx = wd * 25.4 / wd_mm; 118 rx = wd * 25.4 / wd_mm;
119 ry = ht * 25.4 / ht_mm; 119 ry = ht * 25.4 / ht_mm;
120 } 120 }
121 else 121 else
122 warning ("X11 display has no default screen"); 122 warning ("X11 display has no default screen");
123
124 XCloseDisplay (display);
123 } 125 }
124 else 126 else
125 warning ("unable to open X11 DISPLAY"); 127 warning ("unable to open X11 DISPLAY");
126 } 128 }
127 else 129 else