diff options
author | David Robillard <d@drobilla.net> | 2009-10-16 15:56:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-16 15:56:12 +0000 |
commit | d066490a1ee302059731d3884dbbe2bae9d7173a (patch) | |
tree | 17112153ece506f817914e4474f44fc741642d3a /src/tuplr.hpp | |
parent | b0a5e24bb43e06fe99e9c4d6cddebce08c379af7 (diff) | |
download | resp-d066490a1ee302059731d3884dbbe2bae9d7173a.tar.gz resp-d066490a1ee302059731d3884dbbe2bae9d7173a.tar.bz2 resp-d066490a1ee302059731d3884dbbe2bae9d7173a.zip |
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/resp/tuplr@243 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/tuplr.hpp')
-rw-r--r-- | src/tuplr.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tuplr.hpp b/src/tuplr.hpp index 0385533..787355b 100644 --- a/src/tuplr.hpp +++ b/src/tuplr.hpp @@ -158,7 +158,7 @@ struct Object { inline Tag tag() const { return (Tag)header()->tag; } inline void tag(Tag t) { header()->tag = t; } inline bool marked() const { return header()->mark != 0; } - inline void mark(bool b) const { header()->mark = 1; } + inline void mark(bool b) const { header()->mark = (b ? 1 : 0); } static void* operator new(size_t size) { return pool.alloc(size); } static void operator delete(void* ptr) {} @@ -638,6 +638,8 @@ Subst unify(const Constraints& c); /// Compiler backend struct Engine { + virtual ~Engine() {} + virtual CFunc startFunction( CEnv& cenv, const std::string& name, |