From 45f26f5205e1b1f783aefbde57179e79c8d09bc5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 16 Apr 2015 16:02:29 -0400 Subject: [PATCH] fix unoptimized stringshare usage in keybindings cfd --- src/modules/conf_bindings/e_int_config_keybindings.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/conf_bindings/e_int_config_keybindings.c b/src/modules/conf_bindings/e_int_config_keybindings.c index 388c054..b2a837e 100644 --- a/src/modules/conf_bindings/e_int_config_keybindings.c +++ b/src/modules/conf_bindings/e_int_config_keybindings.c @@ -902,8 +902,7 @@ _grab_key_down_cb(void *data, e_widget_ilist_selected_set(cfdata->gui.o_binding_list, n); e_widget_ilist_nth_show(cfdata->gui.o_binding_list, n, 0); e_widget_ilist_unselect(cfdata->gui.o_action_list); - eina_stringshare_del(cfdata->locals.action); - cfdata->locals.action = eina_stringshare_add(""); + eina_stringshare_replace(&cfdata->locals.action, ""); if ((cfdata->params) && (cfdata->params[0])) { int j, g = -1; -- 2.7.4