aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2016-10-28 05:42:02 +0200
committerMihai Moldovan <ionic@ionic.de>2016-10-28 05:42:02 +0200
commita5de79181092ce829ce3878d3d9ce671c3cd3cbc (patch)
tree7181200cc6b6f0afc4a0f0bf10571195c334acf7 /nx-X11
parent5d4a7e071ac1c0f4badda89d7356a51a7f74ac2d (diff)
parent8d1126e97a75263d71b8bbfd7e20c16f70953850 (diff)
downloadnx-libs-a5de79181092ce829ce3878d3d9ce671c3cd3cbc.tar.gz
nx-libs-a5de79181092ce829ce3878d3d9ce671c3cd3cbc.tar.bz2
nx-libs-a5de79181092ce829ce3878d3d9ce671c3cd3cbc.zip
Merge branch 'uli42-pr/backup_memleak' into arctica-3.6.x
Attributes GH PR #242: https://github.com/ArcticaProject/nx-libs/pull/242
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/FontNames.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/FontNames.c b/nx-X11/lib/X11/FontNames.c
index e55f338ca..3e23b5f49 100644
--- a/nx-X11/lib/X11/FontNames.c
+++ b/nx-X11/lib/X11/FontNames.c
@@ -98,12 +98,14 @@ int *actualCount) /* RETURN */
*ch = '\0'; /* and replace with null-termination */
count++;
} else {
+ Xfree(ch);
Xfree(flist);
flist = NULL;
count = 0;
break;
}
} else {
+ Xfree(ch);
Xfree(flist);
flist = NULL;
count = 0;