From d066490a1ee302059731d3884dbbe2bae9d7173a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Oct 2009 15:56:12 +0000 Subject: Fix memory leaks. git-svn-id: http://svn.drobilla.net/resp/tuplr@243 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/gc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gc.cpp') 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(); -- cgit v1.2.1