Fix wrong Xfree in XListFonts failure path
'ch' gets moved inside the allocated buffer as we're looping through
fonts, so keep a reference to the start of the buffer so we can pass
that to Xfree in the failure case.
Fixes: commit 20a3f99eba5001925b8b313da3accb7900eb1927 "Plug a memory leak"
Signed-off-by:
Julien Cristau <jcristau@debian.org>
Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
Showing
Please
register
or
sign in
to comment