eina_model: correctly retrieve the memory from value.

val->value.ptr is just valid on 64bits platforms, as on 32bits both
pointers of the Eina_Value_Struct fits in the 8bytes of val->value.buf.

Always use the function to correctly retrieve it.



SVN revision: 67764
This commit is contained in:
Gustavo Sverzut Barbieri 2012-02-08 15:13:25 +00:00
parent ed1558ff84
commit 68d5bb81bc
1 changed files with 1 additions and 1 deletions

View File

@ -2544,7 +2544,7 @@ _eina_model_interface_properties_struct_private_get(const Eina_Model *model)
{
Eina_Value *val = eina_model_interface_private_data_get
(model, EINA_MODEL_INTERFACE_PROPERTIES_STRUCT);
return val->value.ptr;
return eina_value_memory_get(val);
}
#define EINA_MODEL_INTERFACE_PROPERTIES_STRUCT_GET(model) \