From 69c5e7fe16b7d9d08db81a6d5e2762f0be3b081f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 6 Jan 2007 19:39:56 +0000 Subject: Added ability to get Raul Thread for current calling context. Strong threading assertions. Flowcanvas port removal fixes. Patch port destruction. Code cleanups, bug fixes. git-svn-id: http://svn.drobilla.net/lad/ingen@234 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/GraphObject.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libs/engine/GraphObject.cpp') diff --git a/src/libs/engine/GraphObject.cpp b/src/libs/engine/GraphObject.cpp index 03b4eae7..7173e6f8 100644 --- a/src/libs/engine/GraphObject.cpp +++ b/src/libs/engine/GraphObject.cpp @@ -33,6 +33,7 @@ GraphObject::parent_patch() const void GraphObject::add_to_store(ObjectStore* store) { + assert(!_store); store->add(this); _store = store; } @@ -41,6 +42,8 @@ GraphObject::add_to_store(ObjectStore* store) void GraphObject::remove_from_store() { + assert(_store); + if (_store) { TreeNode* node = _store->remove(path()); if (node != NULL) { -- cgit v1.2.1