diff options
| author | Manolo Gouy <Manolo> | 2010-12-22 09:22:38 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-22 09:22:38 +0000 |
| commit | 75533d248217872858aa14eb15c89f7e658bebba (patch) | |
| tree | 48ba4cdeeabf014a6239e8574ebbe4d7463279c7 /src | |
| parent | 7a75f5b923f2ea2af30eeba25349f11d4f7f6738 (diff) | |
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
Diffstat (limited to 'src')
| -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; |
