PropertyPanel has the following public methods:
void addProperties (const Array<PropertyComponent*>& newPropertyComponents...);
void addSection (const String& title, const Array<PropertyComponent*>& newPropertyComponents...);
Both of these expect an array of raw pointers to components, which is a dangerous thing to create. If something goes wrong while you create that array, or if you don’t add it to the panel, the components will leak.
Could we have updated versions of these functions which take an OwnedArray<PropertyComponent>&&? The underlying SectionCompoent already has such an OwnedArray, so I don’t think it would be difficult to implement.
void addProperties (OwnedArray<PropertyComponent>&& newPropertyComponents...);
void addSection (const String& title, OwnedArray<PropertyComponent>&& newPropertyComponents...);
