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:05 +1100 |
commit | 0137b0394a248f694448a7d97c9a1a3efcf24e81 (patch) | |
tree | cb68c29aebd2ea3c02ca6db9f6a763f0d504cc8f /xkb | |
parent | b99a43dfe97c1813e1c61f298b1c83c5d5ca88a2 (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.
Diffstat (limited to 'xkb')
-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 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, |