diff options
author | David Robillard <d@drobilla.net> | 2015-10-24 02:33:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-24 02:33:45 +0000 |
commit | 0dff2803791e8b21472fc4c61d51e51369407341 (patch) | |
tree | 54a1cbea8297e59ae4a085d5201bcbd4fc560671 | |
parent | 64e08b177f873ecacc914e966968f5240b5f8297 (diff) | |
download | ingen-0dff2803791e8b21472fc4c61d51e51369407341.tar.gz ingen-0dff2803791e8b21472fc4c61d51e51369407341.tar.bz2 ingen-0dff2803791e8b21472fc4c61d51e51369407341.zip |
Fix invalid iterator access
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5774 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/client/ClientStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<PortModel> port = dynamic_ptr_cast<PortModel>(top->second); + SPtr<PortModel> port = dynamic_ptr_cast<PortModel>(object); SPtr<GraphModel> gpparent = dynamic_ptr_cast<GraphModel>( object->parent()->parent()); if (port && gpparent) { |