summaryrefslogtreecommitdiffstats
path: root/src/server/BlockImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-11 23:24:34 +0100
committerDavid Robillard <d@drobilla.net>2020-11-11 23:24:34 +0100
commit4de692ccf8c97cb156029375a10fc6a2aa2928fe (patch)
tree87fcf0bb3d1829216a524b6fda13449a292d901a /src/server/BlockImpl.hpp
parent09e544df518d3ce91744606460553c8ca8b148d3 (diff)
downloadingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.tar.gz
ingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.tar.bz2
ingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.zip
Fix potential state memory leaks
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r--src/server/BlockImpl.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp
index a5f5963a..f6c72c8e 100644
--- a/src/server/BlockImpl.hpp
+++ b/src/server/BlockImpl.hpp
@@ -20,6 +20,7 @@
#include "BufferRef.hpp"
#include "NodeImpl.hpp"
#include "PortType.hpp"
+#include "State.hpp"
#include "types.hpp"
#include "ingen/Node.hpp"
@@ -108,7 +109,7 @@ public:
void set_enabled(bool e) { _enabled = e; }
/** Load a preset from the world for this block. */
- virtual LilvState* load_preset(const URI& uri) { return nullptr; }
+ virtual StatePtr load_preset(const URI& uri) { return {}; }
/** Restore `state`. */
virtual void