Fix crash due to out-of-order frees. (#7208)
* Fix crash due to out-of-order frees. Don't free the kdbDescr until we've freed the names it contains. This fixes a SIGBUS crash on FreeBSD (and maybe other platforms too?) when pressing special keys (e.g., the Windows key) on a client. * Update ChangeLog Co-authored-by: Serhii Hadzhilov <serhii-external@symless.com>
This commit is contained in:
parent
7d4a368864
commit
b2b887cf43
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
1.14.6
|
1.14.6
|
||||||
======
|
======
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
- #7208 Fix crash on FreeBSD when pressing special keys on a client.
|
||||||
|
|
||||||
Enhancements:
|
Enhancements:
|
||||||
- #7222 Ability to initiate non-TLS connection from server
|
- #7222 Ability to initiate non-TLS connection from server
|
||||||
- #7225 Ability to initiate TLS connection from server
|
- #7225 Ability to initiate TLS connection from server
|
||||||
|
|
|
||||||
|
|
@ -148,8 +148,8 @@ AppUtilUnix::getCurrentLanguageCode()
|
||||||
groupStartI = strI + 1;
|
groupStartI = strI + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
XFree(kbdDescr);
|
|
||||||
XkbFreeNames(kbdDescr, XkbSymbolsNameMask, true);
|
XkbFreeNames(kbdDescr, XkbSymbolsNameMask, true);
|
||||||
|
XFree(kbdDescr);
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
|
|
||||||
result = X11LayoutsParser::convertLayotToISO("/usr/share/X11/xkb/rules/evdev.xml", result);
|
result = X11LayoutsParser::convertLayotToISO("/usr/share/X11/xkb/rules/evdev.xml", result);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue