aboutsummaryrefslogtreecommitdiffstats
path: root/src/gc.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-16 15:56:12 +0000
committerDavid Robillard <d@drobilla.net>2009-10-16 15:56:12 +0000
commitd066490a1ee302059731d3884dbbe2bae9d7173a (patch)
tree17112153ece506f817914e4474f44fc741642d3a /src/gc.cpp
parentb0a5e24bb43e06fe99e9c4d6cddebce08c379af7 (diff)
downloadresp-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/gc.cpp')
-rw-r--r--src/gc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gc.cpp b/src/gc.cpp
index 01848d2..9367921 100644
--- a/src/gc.cpp
+++ b/src/gc.cpp
@@ -79,6 +79,7 @@ GC::collect(const Roots& roots)
if ((*i)->marked()) {
(*i)->mark(false);
+ assert(!(*i)->marked());
} else {
if ((*i)->tag() == Object::AST)
((AST*)*i)->~AST();