update the ToolResourceProvider to clear members when they are destroyed
update the ToolResourceProvider to clear members when they are destroyed

Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt