summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Info.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-12 04:53:15 +0000
committerDavid Robillard <d@drobilla.net>2012-08-12 04:53:15 +0000
commite49cb96073f514edbe1b7a9854b49c47af35463c (patch)
treea20d32b572f8c28cba950ba53e9d0c595cf0b6c7 /src/server/LV2Info.hpp
parentf1440f1247d71a4867a50eede068730743eb8e09 (diff)
downloadingen-e49cb96073f514edbe1b7a9854b49c47af35463c.tar.gz
ingen-e49cb96073f514edbe1b7a9854b49c47af35463c.tar.bz2
ingen-e49cb96073f514edbe1b7a9854b49c47af35463c.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4667 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Info.hpp')
-rw-r--r--src/server/LV2Info.hpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/server/LV2Info.hpp b/src/server/LV2Info.hpp
index 9b6ea9db..fd70ea83 100644
--- a/src/server/LV2Info.hpp
+++ b/src/server/LV2Info.hpp
@@ -17,35 +17,36 @@
#ifndef INGEN_ENGINE_LV2INFO_HPP
#define INGEN_ENGINE_LV2INFO_HPP
-#include "lilv/lilv.h"
#include "ingen/World.hpp"
+#include "lilv/lilv.h"
+#include "raul/Noncopyable.hpp"
namespace Ingen {
namespace Server {
/** Stuff that may need to be passed to an LV2 plugin (i.e. LV2 features).
*/
-class LV2Info {
+class LV2Info : public Raul::Noncopyable {
public:
explicit LV2Info(Ingen::World* world);
~LV2Info();
- LilvNode* atom_AtomPort;
- LilvNode* atom_bufferType;
- LilvNode* atom_supports;
- LilvNode* lv2_AudioPort;
- LilvNode* lv2_CVPort;
- LilvNode* lv2_ControlPort;
- LilvNode* lv2_InputPort;
- LilvNode* lv2_OutputPort;
- LilvNode* lv2_default;
- LilvNode* lv2_portProperty;
- LilvNode* lv2_sampleRate;
- LilvNode* morph_AutoMorphPort;
- LilvNode* morph_MorphPort;
- LilvNode* morph_supportsType;
- LilvNode* rsz_minimumSize;
- LilvNode* work_schedule;
+ LilvNode* const atom_AtomPort;
+ LilvNode* const atom_bufferType;
+ LilvNode* const atom_supports;
+ LilvNode* const lv2_AudioPort;
+ LilvNode* const lv2_CVPort;
+ LilvNode* const lv2_ControlPort;
+ LilvNode* const lv2_InputPort;
+ LilvNode* const lv2_OutputPort;
+ LilvNode* const lv2_default;
+ LilvNode* const lv2_portProperty;
+ LilvNode* const lv2_sampleRate;
+ LilvNode* const morph_AutoMorphPort;
+ LilvNode* const morph_MorphPort;
+ LilvNode* const morph_supportsType;
+ LilvNode* const rsz_minimumSize;
+ LilvNode* const work_schedule;
Ingen::World& world() { return *_world; }
LilvWorld* lv2_world() { return _world->lilv_world(); }