Fix closing X display in get_dimensions

This commit is contained in:
Glenn Watson 2014-10-24 14:13:19 +10:00
parent d8ca679a6e
commit 80e4fa9ad8

View file

@ -46,6 +46,7 @@ impl MonitorID {
let screen = ffi::XScreenOfDisplay(display, screen_num as i32); let screen = ffi::XScreenOfDisplay(display, screen_num as i32);
let width = ffi::XWidthOfScreen(screen); let width = ffi::XWidthOfScreen(screen);
let height = ffi::XHeightOfScreen(screen); let height = ffi::XHeightOfScreen(screen);
ffi::XCloseDisplay(display);
(width as uint, height as uint) (width as uint, height as uint)
}; };