diff options
-rw-r--r-- | ingen/LV2Features.hpp | 5 | ||||
-rw-r--r-- | src/LV2Features.cpp | 7 | ||||
-rw-r--r-- | src/server/events/Delta.cpp | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/ingen/LV2Features.hpp b/ingen/LV2Features.hpp index 2fe71f11..5c1a0240 100644 --- a/ingen/LV2Features.hpp +++ b/ingen/LV2Features.hpp @@ -47,10 +47,7 @@ public: Node* block) = 0; protected: - static void free_feature(LV2_Feature* feature) { - free(feature->data); - free(feature); - } + static void free_feature(LV2_Feature* feature); }; class EmptyFeature : public Feature { diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp index e9ba29e7..3465981e 100644 --- a/src/LV2Features.cpp +++ b/src/LV2Features.cpp @@ -22,6 +22,13 @@ using namespace std; namespace Ingen { +void +LV2Features::Feature::free_feature(LV2_Feature* feature) +{ + free(feature->data); + free(feature); +} + LV2Features::LV2Features() { } diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index 898fd971..e41d6a87 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -639,8 +639,6 @@ Delta::post_process() void Delta::undo(Interface& target) { - const Ingen::URIs& uris = _engine.world()->uris(); - if (_create_event) { _create_event->undo(target); } else if (_type == Type::PATCH) { |