aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Font.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-04-09 19:10:00 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:58:17 +0200
commit13536693d89077daa3cde370bb43decbf24ec212 (patch)
tree5563d38029a33122c481ccf426d3728af1b7307c /nx-X11/programs/Xserver/hw/nxagent/Font.c
parent99f541c1e4499ff8fda65c67c2038d5b65c15e67 (diff)
downloadnx-libs-13536693d89077daa3cde370bb43decbf24ec212.tar.gz
nx-libs-13536693d89077daa3cde370bb43decbf24ec212.tar.bz2
nx-libs-13536693d89077daa3cde370bb43decbf24ec212.zip
NXdispatch.c: free font data on exit
helps to avoid valgrind warnings
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Font.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Font.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Font.c b/nx-X11/programs/Xserver/hw/nxagent/Font.c
index 200a6fa61..dcbd6949a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Font.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Font.c
@@ -102,7 +102,6 @@ static XFontStruct *nxagentLoadBestQueryFont(Display* dpy, char *fontName, FontP
static XFontStruct *nxagentLoadQueryFont(register Display *dpy , char *fontName , FontPtr pFont);
int nxagentFreeFont(XFontStruct *fs);
static Bool nxagentGetFontServerPath(char * fontServerPath, int size);
-
static char * nxagentMakeScalableFontName(const char *fontName, int scalableResolution);
RESTYPE RT_NX_FONT;
@@ -158,6 +157,14 @@ static struct _nxagentFailedToReconnectFonts
int index;
} nxagentFailedToReconnectFonts = {NULL, NULL, 0, 0};
+static void nxagentFreeRemoteFontList(nxagentFontList *listRec);
+
+void nxagentFreeFontData(void)
+{
+ nxagentFreeFontCache();
+ nxagentFreeRemoteFontList(&nxagentRemoteFontList);
+}
+
/*
* This is used if nxagentFullGeneration is true in CloseDisplay().
*/