aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/lcFile.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 12:30:56 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:24 +0200
commit54550ebb2a1fc504406b199550b8e023ef2c9517 (patch)
treefa6f9d6e9349ad5690a3327dabe0a789d0ef6e39 /nx-X11/lib/X11/lcFile.c
parentb7694b0b51cdf07f49d89132fbe100b5ebfb086b (diff)
downloadnx-libs-54550ebb2a1fc504406b199550b8e023ef2c9517.tar.gz
nx-libs-54550ebb2a1fc504406b199550b8e023ef2c9517.tar.bz2
nx-libs-54550ebb2a1fc504406b199550b8e023ef2c9517.zip
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> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/lcFile.c')
0 files changed, 0 insertions, 0 deletions