In the example provider component, code managing the lifetime of the schema objects is in cschobj.cpp.