Only close clipboard hidden window only if created. This fixes errors on

early exit from the GUI.
This commit is contained in:
gbeauche 2005-06-19 15:50:52 +00:00
parent fe99211e75
commit 7f3e40883a

View File

@ -296,7 +296,8 @@ void ClipInit(void)
void ClipExit(void)
{
// Close window
XDestroyWindow(x_display, clip_win);
if (clip_win)
XDestroyWindow(x_display, clip_win);
}