summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/eo_cxx/eo_inherit.hh3
-rw-r--r--src/bindings/eo_cxx/eo_ops.hh3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/bindings/eo_cxx/eo_inherit.hh b/src/bindings/eo_cxx/eo_inherit.hh
index 1d3d3125ff..9639e33e4a 100644
--- a/src/bindings/eo_cxx/eo_inherit.hh
+++ b/src/bindings/eo_cxx/eo_inherit.hh
@@ -83,10 +83,9 @@ struct inherit
83 /// 83 ///
84 template<typename... Args> 84 template<typename... Args>
85 inherit(efl::eo::parent_type _p, Args&& ... args) 85 inherit(efl::eo::parent_type _p, Args&& ... args)
86 : _eo_cls(nullptr), _eo_raw(nullptr)
87 { 86 {
88 _eo_cls = detail::create_class<D, E...> (eina::make_index_sequence<sizeof...(E)>()); 87 _eo_cls = detail::create_class<D, E...> (eina::make_index_sequence<sizeof...(E)>());
89 eo_add_ref(&_eo_raw, _eo_cls, _p._eo_raw, detail::inherit_constructor(_eo_raw, this), ::efl::eolian::call_ctors(_eo_raw, args...)); 88 _eo_raw = eo_add_ref(_eo_cls, _p._eo_raw, detail::inherit_constructor(eoid, this), ::efl::eolian::call_ctors(eoid, args...));
90 ::efl::eolian::register_ev_del_free_callback(_eo_raw, args...); 89 ::efl::eolian::register_ev_del_free_callback(_eo_raw, args...);
91 } 90 }
92 91
diff --git a/src/bindings/eo_cxx/eo_ops.hh b/src/bindings/eo_cxx/eo_ops.hh
index 653dcf327d..f2d51334f7 100644
--- a/src/bindings/eo_cxx/eo_ops.hh
+++ b/src/bindings/eo_cxx/eo_ops.hh
@@ -60,8 +60,7 @@ isa(const Eo *obj, const Eo_Class *klass)
60inline Eo* 60inline Eo*
61add(const Eo_Class *klass, Eo *parent = NULL) 61add(const Eo_Class *klass, Eo *parent = NULL)
62{ 62{
63 Eo *eo = nullptr; 63 Eo *eo = eo_add_ref(klass, parent);
64 eo_add_ref(&eo, klass, parent);
65 return eo; 64 return eo;
66} 65}
67 66