summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_key_grab.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 11:53:59 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-31 11:53:59 +0900
commit6e82f90807e19993a77a007e4ce0a9dbcd082d9b (patch)
tree15911424931c44444722b0f6730c26de20e17466 /src/lib/evas/canvas/evas_key_grab.c
parentf4ce0d1b953fdb1a2b9974f0080febe937bb0ba8 (diff)
evas mem - remove redundenty unused evas mem absraction
was never used as was not practical to do so so it effectively does nothing so remove it to reduce analyser warnings found by PVS studio
Diffstat (limited to 'src/lib/evas/canvas/evas_key_grab.c')
-rw-r--r--src/lib/evas/canvas/evas_key_grab.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/evas/canvas/evas_key_grab.c b/src/lib/evas/canvas/evas_key_grab.c
index 7d856d2..aaf6e6a 100644
--- a/src/lib/evas/canvas/evas_key_grab.c
+++ b/src/lib/evas/canvas/evas_key_grab.c
@@ -35,7 +35,7 @@ evas_key_grab_new(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, const ch
35 35
36 if (have_exclusion && exclusive) return NULL; 36 if (have_exclusion && exclusive) return NULL;
37 37
38 g = evas_mem_calloc(sizeof(Evas_Key_Grab)); 38 g = calloc(1, sizeof(Evas_Key_Grab));
39 if (!g) return NULL; 39 if (!g) return NULL;
40 g->object = eo_obj; 40 g->object = eo_obj;
41 g->modifiers = modifiers; 41 g->modifiers = modifiers;
@@ -47,17 +47,8 @@ evas_key_grab_new(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, const ch
47 g->is_active = EINA_TRUE; 47 g->is_active = EINA_TRUE;
48 if (!g->keyname) 48 if (!g->keyname)
49 { 49 {
50 if (!evas_mem_free(strlen(keyname) + 1)) 50 free(g);
51 { 51 return NULL;
52 free(g);
53 return NULL;
54 }
55 g->keyname = strdup(keyname);
56 if (!g->keyname)
57 {
58 free(g);
59 return NULL;
60 }
61 } 52 }
62 53
63 if (exclusive) 54 if (exclusive)