eo_cxx: Fix leakage of eo objects by removing unnecessary "eo_ref"

Removed the call to eo_ref in the conversion from eo::base to the native
Eo* (in "to_c" function) in order to avoid eo objects being leaked.
This commit is contained in:
Vitor Sousa 2014-11-11 20:54:15 -02:00
parent 132abc3534
commit 2b94d874fe
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace efl { namespace eolian {
inline Eo*
to_c(efl::eo::base const& x)
{
return ::eo_ref(x._eo_ptr());
return x._eo_ptr();
}
inline const char*