diff options
author | Jean-Philippe ANDRE <jpeg@videolan.org> | 2014-06-22 18:08:56 +0900 |
---|---|---|
committer | Jean-Philippe ANDRE <jpeg@videolan.org> | 2014-06-22 18:12:01 +0900 |
commit | d589e760d31ed2cea371eef11bdb82b73181859c (patch) | |
tree | bda798a73ef27585c1202b3f6b00d9c1ed9ca664 | |
parent | cc3809d295707ede041f36f92e19042f9c644f55 (diff) | |
download | efl-d589e760d31ed2cea371eef11bdb82b73181859c.tar.gz |
Evas map: Add missing EINA_MAGIC check
-rw-r--r-- | src/lib/evas/canvas/evas_map.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c index 9d41cf31da..6ddc05a202 100644 --- a/src/lib/evas/canvas/evas_map.c +++ b/src/lib/evas/canvas/evas_map.c @@ -792,6 +792,10 @@ evas_map_point_color_get(const Evas_Map *m, int idx, int *r, int *g, int *b, int EAPI void evas_map_util_points_populate_from_object_full(Evas_Map *m, const Evas_Object *eo_obj, Evas_Coord z) { + MAGIC_CHECK(m, Evas_Map, MAGIC_MAP); + return; + MAGIC_CHECK_END(); + MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ); return; MAGIC_CHECK_END(); @@ -818,7 +822,7 @@ evas_map_util_points_populate_from_object(Evas_Map *m, const Evas_Object *eo_obj return; MAGIC_CHECK_END(); Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); - + if (!obj) return; if (m->count != 4) { |