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:
		@ -534,7 +534,8 @@ _gdk_wayland_display_get_keymap (GdkDisplay *display)
 | 
				
			|||||||
  if (core_keyboard)
 | 
					  if (core_keyboard)
 | 
				
			||||||
    return _gdk_wayland_device_get_keymap (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;
 | 
					  return tmp_keymap;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user