From 0137b0394a248f694448a7d97c9a1a3efcf24e81 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sat, 5 Jan 2008 10:43:53 +0200 Subject: XKB: XkbCopyKeymap: Don't leak all the sections Previously, we'd just keep num_sections at 0, which would break the geometry and lead us to leak sections. Don't do that. --- xkb/xkbUtils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xkb/xkbUtils.c') diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c index 31c1a9fa9..1fb47ed56 100644 --- a/xkb/xkbUtils.c +++ b/xkb/xkbUtils.c @@ -1793,6 +1793,7 @@ XkbCopyKeymap(XkbDescPtr src, XkbDescPtr dst, Bool sendNotifies) if (!tmp) return FALSE; dst->geom->sections = tmp; + dst->geom->num_sections = src->geom->num_sections; for (i = 0, ssection = src->geom->sections, -- cgit v1.2.3