mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 12:38:00 +02:00
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 0137b0394a)
This commit is contained in:
parent
02e805f0ff
commit
8a3acd3ec4
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue