Pyolian: correctly define c_type as a property

This commit is contained in:
Davide Andreoli 2019-10-11 08:17:56 +02:00
parent a3eb4670f1
commit 3c0e9b424d
1 changed files with 2 additions and 1 deletions

View File

@ -1137,7 +1137,8 @@ class Type(Object):
def builtin_type(self):
return Eolian_Type_Builtin_Type(lib.eolian_type_builtin_type_get(self))
def c_type_get(self):
@cached_property
def c_type(self):
s = lib.eolian_type_c_type_get(self)
ret = _str_to_py(s)
lib.eina_stringshare_del(c_void_p(s))