felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=2b94d874fec07f3a9defee7e8d3737610af691bd
commit 2b94d874fec07f3a9defee7e8d3737610af691bd Author: Vitor Sousa <vitorsousasi...@gmail.com> Date: Tue Nov 11 20:54:15 2014 -0200 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. --- src/bindings/eo_cxx/eo_cxx_interop.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/eo_cxx/eo_cxx_interop.hh b/src/bindings/eo_cxx/eo_cxx_interop.hh index 3e1d88b..174d543 100644 --- a/src/bindings/eo_cxx/eo_cxx_interop.hh +++ b/src/bindings/eo_cxx/eo_cxx_interop.hh @@ -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* --