forked from enlightenment/efl
Evas smart: Verify it's a smart object before returning the data.
SVN revision: 72034
This commit is contained in:
parent
a9709c792e
commit
1ef99594d8
|
@ -96,6 +96,9 @@ evas_object_smart_data_get(const Evas_Object *obj)
|
|||
MAGIC_CHECK_END();
|
||||
o = (Evas_Object_Smart *)(obj->object_data);
|
||||
if (!o) return NULL;
|
||||
MAGIC_CHECK(o, Evas_Object_Smart, MAGIC_OBJ_SMART);
|
||||
return NULL;
|
||||
MAGIC_CHECK_END();
|
||||
return o->data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue