summaryrefslogtreecommitdiff
path: root/src/bindings/eo_cxx/eo_ops.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/eo_cxx/eo_ops.hh')
-rw-r--r--src/bindings/eo_cxx/eo_ops.hh3
1 files changed, 1 insertions, 2 deletions
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