summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-08-06 16:19:25 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-08-06 16:19:25 +0000
commitc3437251334b5f1df0a351414af4d51c622fed78 (patch)
tree03e53f59b812f3421140e5ad1342f528daebdd08 /legacy
parent1699490f15e46049b05f4bfef8b996b3243b40b7 (diff)
[evas] Add forgotten magic checks on those iface functions.
SVN revision: 74948
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_smart.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_smart.c b/legacy/evas/src/lib/canvas/evas_object_smart.c
index 431edd200e..b46aa6e0c4 100644
--- a/legacy/evas/src/lib/canvas/evas_object_smart.c
+++ b/legacy/evas/src/lib/canvas/evas_object_smart.c
@@ -104,12 +104,16 @@ EAPI const void *
104evas_object_smart_interface_get(const Evas_Object *obj, 104evas_object_smart_interface_get(const Evas_Object *obj,
105 const char *name) 105 const char *name)
106{ 106{
107 unsigned int i;
108 Evas_Smart *s; 107 Evas_Smart *s;
108 unsigned int i;
109 Evas_Object_Smart *o;
109 110
110 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); 111 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
111 return NULL; 112 return NULL;
112 MAGIC_CHECK_END(); 113 MAGIC_CHECK_END();
114 o = (Evas_Object_Smart *)(obj->object_data);
115 if (!o) return NULL;
116 if (o->magic != MAGIC_OBJ_SMART) return NULL;
113 117
114 s = evas_object_smart_smart_get(obj); 118 s = evas_object_smart_smart_get(obj);
115 119
@@ -130,12 +134,16 @@ EAPI void *
130evas_object_smart_interface_data_get(const Evas_Object *obj, 134evas_object_smart_interface_data_get(const Evas_Object *obj,
131 const Evas_Smart_Interface *iface) 135 const Evas_Smart_Interface *iface)
132{ 136{
137 Evas_Object_Smart *o;
133 unsigned int i; 138 unsigned int i;
134 Evas_Smart *s; 139 Evas_Smart *s;
135 140
136 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); 141 MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
137 return NULL; 142 return NULL;
138 MAGIC_CHECK_END(); 143 MAGIC_CHECK_END();
144 o = (Evas_Object_Smart *)(obj->object_data);
145 if (!o) return NULL;
146 if (o->magic != MAGIC_OBJ_SMART) return NULL;
139 147
140 s = evas_object_smart_smart_get(obj); 148 s = evas_object_smart_smart_get(obj);
141 149