diff options
author | David Robillard <d@drobilla.net> | 2016-12-14 10:05:07 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-12-14 14:47:13 -0500 |
commit | a2f86537a9fdaabe12b553a1cf066649a96b4891 (patch) | |
tree | 0c2107969b1dd8cd22fbb38c58cc49a8c50711d7 /src/server | |
parent | 74f83ee8aa39d9fded35e07c9418c38ababcd9a7 (diff) | |
download | ingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.tar.gz ingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.tar.bz2 ingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.zip |
Fix memory errors
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/PluginImpl.hpp | 1 | ||||
-rw-r--r-- | src/server/Task.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/server/PluginImpl.hpp b/src/server/PluginImpl.hpp index 9728bf36..4f5c7eec 100644 --- a/src/server/PluginImpl.hpp +++ b/src/server/PluginImpl.hpp @@ -49,6 +49,7 @@ public: const Raul::URI& uri) : Resource(uris, uri) , _type(type) + , _presets_loaded(false) , _is_zombie(false) {} diff --git a/src/server/Task.cpp b/src/server/Task.cpp index e15a4d4a..e19855d3 100644 --- a/src/server/Task.cpp +++ b/src/server/Task.cpp @@ -84,7 +84,7 @@ Task::get_task(RunContext& context) while (true) { // Push done end index as forward as possible - for (; (*this)[_done_end].done(); ++_done_end) {} + for (; _done_end < size() && (*this)[_done_end].done(); ++_done_end) {} if (_done_end >= size()) { return NULL; // All child tasks are finished |