summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-10-28 17:18:38 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-10-28 17:18:38 +0000
commite22a6996e693188825adfafe8fba136de773eff9 (patch)
tree5e3ea4984390fc09ad7398c65773e525b0f0fae2 /legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c
parentf4545f91dc33b0b2fb95500f4ebdb180ecdc8e4e (diff)
ecore/fb: Remove useless strdup().
It wasn't even being freed. Patch for SiT. SVN revision: 64499
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c b/legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c
index 570d004029..b203e6bc03 100644
--- a/legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c
+++ b/legacy/ecore/src/lib/ecore_fb/ecore_fb_li.c
@@ -44,7 +44,7 @@ _ecore_fb_li_device_event_key(Ecore_Fb_Input_Device *dev, struct input_event *ie
44 if ((iev->code >= KEY_ESC) && (iev->code <= KEY_COMPOSE)) 44 if ((iev->code >= KEY_ESC) && (iev->code <= KEY_COMPOSE))
45 { 45 {
46 int offset = 0; 46 int offset = 0;
47 char *keyname = strdup(_ecore_fb_li_kbd_syms[iev->code * 6]); 47 const char *keyname = _ecore_fb_li_kbd_syms[iev->code * 6];
48 /* check the key table */ 48 /* check the key table */
49 if (iev->value) 49 if (iev->value)
50 { 50 {
@@ -96,8 +96,8 @@ _ecore_fb_li_device_event_key(Ecore_Fb_Input_Device *dev, struct input_event *ie
96 if (dev->keyboard.shift) offset = 1; 96 if (dev->keyboard.shift) offset = 1;
97 else if (dev->keyboard.lock) offset = 2; 97 else if (dev->keyboard.lock) offset = 2;
98 98
99 char *key = strdup(_ecore_fb_li_kbd_syms[(iev->code * 6) + offset]); 99 const char *key = _ecore_fb_li_kbd_syms[(iev->code * 6) + offset];
100 char *compose = strdup(_ecore_fb_li_kbd_syms[(iev->code * 6) + 3 + offset]); 100 const char *compose = _ecore_fb_li_kbd_syms[(iev->code * 6) + 3 + offset];
101 101
102 e = calloc(1, sizeof(Ecore_Event_Key) + strlen(key) + 102 e = calloc(1, sizeof(Ecore_Event_Key) + strlen(key) +
103 strlen(keyname) + (compose ? strlen(compose) : 0) + 3); 103 strlen(keyname) + (compose ? strlen(compose) : 0) + 3);