summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord/sordmm.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index 817ac08..a2c8d73 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -161,8 +161,9 @@ public:
}
const Node& operator=(const Node& other) {
- if (_c_obj)
+ if (_c_obj) {
sord_node_free(_world->c_obj(), _c_obj);
+ }
_world = other._world;
_c_obj = other._c_obj ? sord_node_copy(other._c_obj) : NULL;
return *this;