diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-01 12:30:56 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-01 23:45:09 -0800 |
commit | cc686655d7bfdeab8b67e01a24bd452a2e9e3fcf (patch) | |
tree | 32ff281f351c2bcd5845f360bbaa0118697c9e5e /autogen.sh | |
parent | 95796351435d81eaef8166d49ba3a6e7b633d70a (diff) |
XDefaultOMIF.c: Fix memory leaks in get_font_name
Instead of copying the value returned by get_prop_name and then releasing it,
directly use the return value of get_prop_name, which allocates memory for the
name.
If get_prop_name returns NULL, continue on to XFreeFont to release the font
before returning the NULL via the normal function return.
Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions