Fixed a missing call to XFreeFont
Reviewed-by: Ander Conselvan de Oliveira <[email protected]>
Signed-off-by: Erkki Seppälä <[email protected]>
---
src/xlibi18n/XDefaultOMIF.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/xlibi18n/XDefaultOMIF.c b/src/xlibi18n/XDefaultOMIF.c
index bc6b1b9..bb3986a 100644
--- a/src/xlibi18n/XDefaultOMIF.c
+++ b/src/xlibi18n/XDefaultOMIF.c
@@ -398,7 +398,10 @@ get_font_name(
if (fs == NULL) return NULL;
prop_name = get_prop_name(dpy, fs);
- if (prop_name == NULL) return NULL;
+ if (prop_name == NULL) {
+ XFreeFont(dpy, fs);
+ return NULL;
+ }
name = (char*) Xmalloc(strlen(prop_name) + 1);
if (name)
--
1.7.0.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel