QFileInfo fileName1("./configure");
 this->deleteDirectory(fileName1);//删除已存在的configure文件夹
//删除文件夹及下面的文件
void EDownLoadThread::deleteDirectory(QFileInfo fileList)
{ if(fileList.isDir())
{
int childCount =0;
QString dir = fileList.filePath();
QDir thisDir(dir);
childCount = thisDir.entryInfoList().count();// QFileInfoList newFileList = thisDir.entryInfoList();
if(childCount>2)
{
for(int i=0;i<childCount;i++)
{
if(newFileList.at(i).fileName().operator ==(".")|newFileList.at(i).fileName().operator ==(".."))
{
continue;
}
deleteDirectory(newFileList.at(i));
}
}
fileList.absoluteDir().rmpath(fileList.fileName());

}else if(fileList.isFile())
{ fileList.absoluteDir().remove(fileList.fileName());
}
}【我用boundscheckers检测出红色标注的地方内存有泄漏 可是我觉得没有问题呐 谁可以帮我看下是哪出错啦么 】