diff options
-rw-r--r-- | src/libs/shared/LV2Features.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/shared/LV2Features.cpp b/src/libs/shared/LV2Features.cpp index aed4ab66..7b57d209 100644 --- a/src/libs/shared/LV2Features.cpp +++ b/src/libs/shared/LV2Features.cpp @@ -56,7 +56,7 @@ LV2Features::add_feature(const std::string& uri, LV2_Feature* feature, void* con #endif _features.insert(make_pair(uri, Feature(feature, controller))); - _lv2_features = (LV2_Feature**)realloc(_lv2_features, _features.size() + 1); + _lv2_features = (LV2_Feature**)realloc(_lv2_features, sizeof(LV2_Feature*) * (_features.size() + 1)); _lv2_features[_features.size()-1] = feature; _lv2_features[_features.size()] = NULL; } |