Fix bad use of realloc on libxklavier
Brought to you by:
svu
When libxklavier encounters a layout with a variant, it
uses realloc to strip the variant off of the layout
name. However, the use of realloc is wrong in that the
newly allocated memory is not reassigned to the layout.
The end result is a double free when the layouts are
destroyed.
Fix realloc usage