summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-01 12:16:23 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-04-01 12:16:56 +0100
commitbee68e54e5c3a4b9f46c81366a720531e3e07a82 (patch)
treef3d76a49e9f5dbdb594bb34101268e5ca14086a4 /src
parentf49e7e1608f2dac140f60bcae21d5c37f79fc41b (diff)
Free the FontInfo structure after loading the cursor from it.
References: https://bugs.freedesktop.org/show_bug.cgi?id=2731 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/xlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xlib.c b/src/xlib.c
index 0475d11..dedc43a 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -64,6 +64,7 @@ _XcursorFontIsCursor (Display *dpy, Font font)
ret = (fs->properties[n].card32 == cursor);
break;
}
+ XFreeFontInfo (NULL, fs, 1);
}
fi = malloc (sizeof (XcursorFontInfo));
if (fi)