diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-01-05 10:43:53 +0200 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-01-17 18:43:27 +1100 |
commit | 8a3acd3ec41b887b4aeaa0b2932265522c1e2836 (patch) | |
tree | f2554af2361db71c82405ca55b437ff52b4f77da | |
parent | 02e805f0ff4b6af551372ba5fc5fb369c8834d1d (diff) |
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.
(cherry picked from commit 0137b0394a248f694448a7d97c9a1a3efcf24e81)
-rw-r--r-- | xkb/xkbUtils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c index c7f9a2681..e90df0d2b 100644 --- a/xkb/xkbUtils.c +++ b/xkb/xkbUtils.c @@ -1770,6 +1770,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, |