From 11563367671190a592e4fb7a4a738db05a424108 Mon Sep 17 00:00:00 2001 From: raster Date: Wed, 20 Oct 2010 14:10:55 +0000 Subject: [PATCH] note -= we may leak display struct here... git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@53668 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xlib/ecore_x.c b/src/lib/ecore_x/xlib/ecore_x.c index eb1ea29..fb00931 100644 --- a/src/lib/ecore_x/xlib/ecore_x.c +++ b/src/lib/ecore_x/xlib/ecore_x.c @@ -677,7 +677,11 @@ _ecore_x_shutdown(int close_display) if (close_display) XCloseDisplay(_ecore_x_disp); else - close(ConnectionNumber(_ecore_x_disp)); + { + close(ConnectionNumber(_ecore_x_disp)); + // FIXME: may have to clean up x display internal here + XFree(_ecore_x_disp); + } free(_ecore_x_event_handlers); _ecore_x_fd_handler_handle = NULL; -- 2.7.4