Author: manolo
Date: 2010-12-22 01:22:38 -0800 (Wed, 22 Dec 2010)
New Revision: 8098
Log:
Make sure not to call XFree with NULL pter.

Modified:
   branches/branch-1.3/src/Fl_x.cxx

Modified: branches/branch-1.3/src/Fl_x.cxx
===================================================================
--- branches/branch-1.3/src/Fl_x.cxx    2010-12-22 07:09:25 UTC (rev 8097)
+++ branches/branch-1.3/src/Fl_x.cxx    2010-12-22 09:22:38 UTC (rev 8098)
@@ -1404,7 +1404,7 @@
       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;
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to