Evas smart: Verify it's a smart object before returning the data.

SVN revision: 72034
This commit is contained in:
Tom Hacohen 2012-06-12 14:24:07 +00:00
parent a9709c792e
commit 1ef99594d8
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}