Memory Validator reports a problem: Accessing C++ object functions with a pointer to a deleted object.
It is pointing to prefDir = preferredPath;
in Loader.h Public: is defined:
std::vector<std::string> preferredPaths;
in Loader.ccp
CDirLoader::GetFileExtHandle(not related params)
std::string prefDir;
for(size_t i=0;i<preferredPaths.size();++i)
{
const std::string& preferredPath=preferredPaths[i];
if (!preferredPath.empty())
prefDir = preferredPath; // HERE IT REPORTS PROBLEM