/// This method will free the memory associated with the given module set,
/// both in this layer, and the base layer.
void removeModuleSet(ModuleSetHandleT H) {
- H->RemoveModulesFromBaseLayer();
+ (*H)->RemoveModulesFromBaseLayer(BaseLayer);
ModuleSetList.erase(H);
}