summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-06 09:07:44 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-06 09:07:44 +0900
commitabb06c111b9467beb6f1d3e360dbc3fbb6e6e0f9 (patch)
tree7574b526e5e36d1e7c105129752bfbf52f349d55 /src/lib/evas
parent8b0955c8d00d9349d14133fd8a8877549462a72a (diff)
evas - silence coverty (false positive leak)
the hash can't leak where coverty thinks... because the hash find can never work ... because the hash is empty.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_clip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_clip.c b/src/lib/evas/canvas/evas_clip.c
index a3f7480d0f..4472fd59bd 100644
--- a/src/lib/evas/canvas/evas_clip.c
+++ b/src/lib/evas/canvas/evas_clip.c
@@ -83,7 +83,7 @@ evas_object_child_map_across_mark(Evas_Object *eo_obj, Evas_Object_Protected_Dat
83 visited = eina_hash_pointer_new(NULL); 83 visited = eina_hash_pointer_new(NULL);
84 clear_visited = EINA_TRUE; 84 clear_visited = EINA_TRUE;
85 } 85 }
86 if (eina_hash_find(visited, &eo_obj) == (void *)1) return; 86 if (eina_hash_find(visited, &eo_obj) == (void *)1) goto end;
87 else eina_hash_direct_add(visited, &eo_obj, (void *)1); 87 else eina_hash_direct_add(visited, &eo_obj, (void *)1);
88 88
89 if ((obj->map->cur.map_parent != map_obj) || force) 89 if ((obj->map->cur.map_parent != map_obj) || force)
@@ -124,6 +124,7 @@ evas_object_child_map_across_mark(Evas_Object *eo_obj, Evas_Object_Protected_Dat
124 } 124 }
125 } 125 }
126 } 126 }
127end:
127 if (clear_visited) eina_hash_free(visited); 128 if (clear_visited) eina_hash_free(visited);
128#endif 129#endif
129} 130}