summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-14 10:05:07 -0500
committerDavid Robillard <d@drobilla.net>2016-12-14 14:47:13 -0500
commita2f86537a9fdaabe12b553a1cf066649a96b4891 (patch)
tree0c2107969b1dd8cd22fbb38c58cc49a8c50711d7 /src/server
parent74f83ee8aa39d9fded35e07c9418c38ababcd9a7 (diff)
downloadingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.tar.gz
ingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.tar.bz2
ingen-a2f86537a9fdaabe12b553a1cf066649a96b4891.zip
Fix memory errors
Diffstat (limited to 'src/server')
-rw-r--r--src/server/PluginImpl.hpp1
-rw-r--r--src/server/Task.cpp2
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