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:
Jasper St. Pierre 2014-09-05 14:31:44 -07:00
parent b692d779b2
commit 4764ba4b0e

View File

@ -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;
}