in the release code of 12.11
void CompilerGCC::PrepareCompileFilePM(wxFileName& file)
{
// we 're called from a menu in ProjectManager
// let's check the selected project...
[color=red]FileTreeData* ftd = DoSwitchProjectTemporarily();[/color]
ProjectFile* pf = ftd->GetProjectFile();
if (!pf)
return;
file = pf->file;
CheckProject();
}
the ftd pointer here is malloc in DoSwitchProjectTemporarily function, but no use here, so it MUST be deleted, or it will result in a memory leak!