mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fix memory leak (STR #3069).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+5
-2
@@ -399,8 +399,8 @@ static void fl_new_ic()
|
|||||||
XVaNestedList status_attr = NULL;
|
XVaNestedList status_attr = NULL;
|
||||||
static XFontSet fs = NULL;
|
static XFontSet fs = NULL;
|
||||||
char *fnt;
|
char *fnt;
|
||||||
char **missing_list;
|
char **missing_list = 0;
|
||||||
int missing_count;
|
int missing_count = 0;
|
||||||
char *def_string;
|
char *def_string;
|
||||||
static XRectangle spot;
|
static XRectangle spot;
|
||||||
int predit = 0;
|
int predit = 0;
|
||||||
@@ -428,6 +428,9 @@ static void fl_new_ic()
|
|||||||
if (must_free_fnt) free(fnt);
|
if (must_free_fnt) free(fnt);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (missing_list) XFreeStringList(missing_list);
|
||||||
|
|
||||||
preedit_attr = XVaCreateNestedList(0,
|
preedit_attr = XVaCreateNestedList(0,
|
||||||
XNSpotLocation, &spot,
|
XNSpotLocation, &spot,
|
||||||
XNFontSet, fs, NULL);
|
XNFontSet, fs, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user