fix crash by leaking x display