diff options
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 162572f6c..9d42932ef 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -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; |
