Make sure not to call XFree with NULL pter.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8098 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-12-22 09:22:38 +00:00
parent 7a75f5b923
commit 75533d2482
1 changed files with 1 additions and 1 deletions

View File

@ -1404,7 +1404,7 @@ int fl_handle(const XEvent& thisevent)
if(!fl_xim_im || XGetIMValues(fl_xim_im, XNQueryInputStyle, &xim_styles, NULL, NULL)) {
fl_init_xim();
}
XFree(xim_styles);
if (xim_styles) XFree(xim_styles);
}
break;