summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-09 01:09:16 +0000
committerDavid Robillard <d@drobilla.net>2011-03-09 01:09:16 +0000
commit9040ad42f5260638d1a54bb6339c8f3658864044 (patch)
tree3d1b45555ced71c3b1c5ca6b6395abcfec60f836 /sord
parent1f1840365aba026f7505076fa050c714ded907ad (diff)
downloadsord-9040ad42f5260638d1a54bb6339c8f3658864044.tar.gz
sord-9040ad42f5260638d1a54bb6339c8f3658864044.tar.bz2
sord-9040ad42f5260638d1a54bb6339c8f3658864044.zip
We use fully braced blocks 'round these parts.
git-svn-id: http://svn.drobilla.net/sord/trunk@57 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-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;