summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_x.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 982369758..653938d6b 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -399,8 +399,8 @@ static void fl_new_ic()
XVaNestedList status_attr = NULL;
static XFontSet fs = NULL;
char *fnt;
- char **missing_list;
- int missing_count;
+ char **missing_list = 0;
+ int missing_count = 0;
char *def_string;
static XRectangle spot;
int predit = 0;
@@ -428,6 +428,9 @@ static void fl_new_ic()
if (must_free_fnt) free(fnt);
}
#endif
+
+ if (missing_list) XFreeStringList(missing_list);
+
preedit_attr = XVaCreateNestedList(0,
XNSpotLocation, &spot,
XNFontSet, fs, NULL);