forked from enlightenment/efl
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:
parent
ed1558ff84
commit
68d5bb81bc
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue