Skip to content

Commit

Permalink
Fix memory leak (STR #3069).
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Albrecht Schlosser committed Sep 19, 2014
1 parent d988536 commit ada02ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Fl_x.cxx
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ada02ea

Please sign in to comment.