discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=03a8ab1f511c0b619ebd75391465f00ca89b5e50

commit 03a8ab1f511c0b619ebd75391465f00ca89b5e50
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Apr 27 12:49:11 2016 -0400

    ecore-drm: reuse any created xkb map if no cached map exists
    
    this prevents creating many identical maps during init
---
 src/lib/ecore_drm/ecore_drm_device.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_device.c 
b/src/lib/ecore_drm/ecore_drm_device.c
index 62f54ec..ca56034 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -154,9 +154,8 @@ _ecore_drm_device_cached_keymap_get(struct xkb_context 
*ctx, const struct xkb_ru
    EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, NULL);
 
    if (!cached_keymap)
-     return xkb_map_new_from_names(ctx, names, flags);
-   else
-     return xkb_map_ref(cached_keymap);
+     cached_keymap = xkb_map_new_from_names(ctx, names, flags);
+   return xkb_map_ref(cached_keymap);
 }
 
 void

-- 


Reply via email to