diff --git a/source/modules/lv2_rdf.hpp b/source/modules/lv2_rdf.hpp index a13624ef7..6f9b481bb 100644 --- a/source/modules/lv2_rdf.hpp +++ b/source/modules/lv2_rdf.hpp @@ -519,6 +519,14 @@ struct LV2_RDF_UI { } if (Extensions != nullptr) { + for (uint32_t i=0; iExtensionCount; ++x) + rdfDescriptor->Extensions[x] = nullptr; } } @@ -1284,6 +1287,9 @@ const LV2_RDF_Descriptor* lv2_rdf_new(const LV2_URI uri, const bool doInit) } *rdfExtension = nullptr; } + + for (uint32_t x2=h2; x2 < rdfDescriptor->ExtensionCount; ++x2) + rdfUI->Extensions[x2] = nullptr; } } }