summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-05-23 04:05:43 +0000
committerDavid Robillard <d@drobilla.net>2008-05-23 04:05:43 +0000
commit9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88 (patch)
tree4daa28504207549ae2a79b3d9500c1f774cabe55 /src
parent62eab3042b5a68233cfb9bf7e6949b44dcc9b921 (diff)
downloadingen-9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88.tar.gz
ingen-9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88.tar.bz2
ingen-9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88.zip
Fix memory error.
git-svn-id: http://svn.drobilla.net/lad/ingen@1229 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/libs/shared/LV2Features.cpp2
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;
}