forked from AuroraMiddleware/gtk
wayland: Don't leak the tmp_keymap
This is a static variable, so setting it every time will leak the previous one.
This commit is contained in:
parent
b692d779b2
commit
4764ba4b0e
@ -534,7 +534,8 @@ _gdk_wayland_display_get_keymap (GdkDisplay *display)
|
||||
if (core_keyboard)
|
||||
return _gdk_wayland_device_get_keymap (core_keyboard);
|
||||
|
||||
tmp_keymap = _gdk_wayland_keymap_new ();
|
||||
if (!tmp_keymap)
|
||||
tmp_keymap = _gdk_wayland_keymap_new ();
|
||||
|
||||
return tmp_keymap;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user