From e49cb96073f514edbe1b7a9854b49c47af35463c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 04:53:15 +0000 Subject: Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4667 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/LV2Info.hpp | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'src/server/LV2Info.hpp') 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(); } -- cgit v1.2.1