aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-13 07:00:28 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-13 07:01:06 +0100
commit0c88d8e8ceca665343d4ab03ea7ff9048edd7ad4 (patch)
treee0774b1438364ef61d4de8054fcc16c34f7035ef
parentephysics: Avoid use after free. (diff)
downloadefl-0c88d8e8ceca665343d4ab03ea7ff9048edd7ad4.tar.gz
Revert "Reduce additional call to eina_stringshare_replace."
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 20f7381905..e458d714e6 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -240,11 +240,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
_pointer_update_stop(input);
+ eina_stringshare_replace(&input->cursor_name, cursor_name);
+
/* No cursor. Set to default Left Pointer */
if (!cursor_name)
eina_stringshare_replace(&input->cursor_name, "left_ptr");
- else
- eina_stringshare_replace(&input->cursor_name, cursor_name);
/* try to get this cursor from the theme */
if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))