summaryrefslogtreecommitdiffstats
path: root/sord/sordmm.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-24 02:54:40 +0000
committerDavid Robillard <d@drobilla.net>2011-09-24 02:54:40 +0000
commit5ea6caf8ec6e06b71f14e4a8ac33b29ada7a1518 (patch)
tree6f6ef74028343bc1f892567bd303de4eb3f4e437 /sord/sordmm.hpp
parent26ddb1d141c7b9067f8aa1a1db9a22dddd846da6 (diff)
downloadsord-5ea6caf8ec6e06b71f14e4a8ac33b29ada7a1518.tar.gz
sord-5ea6caf8ec6e06b71f14e4a8ac33b29ada7a1518.tar.bz2
sord-5ea6caf8ec6e06b71f14e4a8ac33b29ada7a1518.zip
Fix memory leak
git-svn-id: http://svn.drobilla.net/sord/trunk@161 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord/sordmm.hpp')
-rw-r--r--sord/sordmm.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index 69796ae..042a005 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -64,6 +64,7 @@ protected:
class Namespaces : public Wrapper<SerdEnv*> {
public:
Namespaces() : Wrapper<SerdEnv*>(serd_env_new(NULL)) {}
+ ~Namespaces() { serd_env_free(_c_obj); }
static inline SerdNode string_to_node(SerdType type, const std::string& s) {
SerdNode ret = {