summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Block.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/LV2Block.hpp
parent09e544df518d3ce91744606460553c8ca8b148d3 (diff)
downloadingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.tar.gz
ingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.tar.bz2
ingen-4de692ccf8c97cb156029375a10fc6a2aa2928fe.zip
Fix potential state memory leaks
Diffstat (limited to 'src/server/LV2Block.hpp')
-rw-r--r--src/server/LV2Block.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/LV2Block.hpp b/src/server/LV2Block.hpp
index 7a0a86ac..ec9c5ac3 100644
--- a/src/server/LV2Block.hpp
+++ b/src/server/LV2Block.hpp
@@ -95,7 +95,7 @@ public:
void run(RunContext& ctx) override;
void post_process(RunContext& ctx) override;
- LilvState* load_preset(const URI& uri) override;
+ StatePtr load_preset(const URI& uri) override;
void apply_state(const std::unique_ptr<Worker>& worker,
const LilvState* state) override;
@@ -108,7 +108,7 @@ public:
const BufferRef& buf,
SampleCount offset) override;
- static LilvState* load_state(World& world, const FilePath& path);
+ static StatePtr load_state(World& world, const FilePath& path);
protected:
struct Instance : public Raul::Noncopyable {