From 9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 May 2008 04:05:43 +0000 Subject: Fix memory error. git-svn-id: http://svn.drobilla.net/lad/ingen@1229 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/shared/LV2Features.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.1