diff options
author | David Robillard <d@drobilla.net> | 2010-02-01 19:24:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-01 19:24:22 +0000 |
commit | 6e8877ee110b774caef800adbe35b21338b3372f (patch) | |
tree | 0d363e811d64da8aa8368c37830a562b1fe6e70e /src/engine/PatchImpl.cpp | |
parent | feb7439d70871aa9663e7c4218671a3c26717fbb (diff) | |
download | ingen-6e8877ee110b774caef800adbe35b21338b3372f.tar.gz ingen-6e8877ee110b774caef800adbe35b21338b3372f.tar.bz2 ingen-6e8877ee110b774caef800adbe35b21338b3372f.zip |
Fix leaks and an iterator error found by cppcheck.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2399 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/PatchImpl.cpp')
-rw-r--r-- | src/engine/PatchImpl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/PatchImpl.cpp b/src/engine/PatchImpl.cpp index 96841b33..771c9d6d 100644 --- a/src/engine/PatchImpl.cpp +++ b/src/engine/PatchImpl.cpp @@ -377,6 +377,7 @@ PatchImpl::remove_port(const string& symbol) if ((*i)->symbol() == symbol) { ret = _input_ports.erase(i); found = true; + break; } } @@ -385,6 +386,7 @@ PatchImpl::remove_port(const string& symbol) if ((*i)->symbol() == symbol) { ret = _output_ports.erase(i); found = true; + break; } } |