note -= we may leak display struct here...

SVN revision: 53668
This commit is contained in:
Carsten Haitzler 2010-10-20 14:10:55 +00:00
parent 2e395b8605
commit 9817dfe5a5
1 changed files with 5 additions and 1 deletions

View File

@ -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;