From 0dff2803791e8b21472fc4c61d51e51369407341 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Oct 2015 02:33:45 +0000 Subject: Fix invalid iterator access git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5774 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/ClientStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index b055a88c..a0c789c4 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -117,7 +117,7 @@ ClientStore::remove_object(const Raul::Path& path) // Remove object from parent model if applicable if (object->parent()) { - SPtr port = dynamic_ptr_cast(top->second); + SPtr port = dynamic_ptr_cast(object); SPtr gpparent = dynamic_ptr_cast( object->parent()->parent()); if (port && gpparent) { -- cgit v1.2.1