summaryrefslogtreecommitdiffstats
path: root/src/x11_in_qt4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_in_qt4.cpp')
-rw-r--r--src/x11_in_qt4.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/x11_in_qt4.cpp b/src/x11_in_qt4.cpp
index e407ccc..23eae5e 100644
--- a/src/x11_in_qt4.cpp
+++ b/src/x11_in_qt4.cpp
@@ -54,14 +54,15 @@ suil_wrapper_new(SuilHost* host,
wrapper->impl = ew;
wrapper->features = (LV2_Feature**)malloc(
- sizeof(LV2_Feature) * (n_features + 1));
- memcpy(wrapper->features, features, sizeof(LV2_Feature) * n_features);
+ sizeof(LV2_Feature*) * (n_features + 2));
+ memcpy(wrapper->features, features, sizeof(LV2_Feature*) * n_features);
LV2_Feature* parent_feature = (LV2_Feature*)malloc(sizeof(LV2_Feature));
parent_feature->URI = NS_UI "parent";
parent_feature->data = (void*)(intptr_t)ew->winId();
- wrapper->features[n_features] = parent_feature;
+ wrapper->features[n_features] = parent_feature;
+ wrapper->features[n_features + 1] = NULL;
return wrapper;
}