【已解决】DataReaderHelper::addDataFromJson内存泄漏!

    void DataReaderHelper::addDataFromJson(const char *filePath)
    {
            unsigned long size;
            std::string fullPath = CCFileUtils::sharedFileUtils()->fullPathForFilename(filePath);
            const char *pFileContent = (char*)CCFileUtils::sharedFileUtils()->getFileData(fullPath.c_str() , "r", &size);

            addDataFromJsonCache(pFileContent);
    }

Xcode发现内存泄漏啊,请问怎么解决!!!急!!!

内存泄露 你用 windows 的 vld吧
那个 比xcode准多了

内存泄露 你用 windows 的 vld吧
那个 比xcode准多了

getFileData 返回的堆区的地址

windows的VLD比xcode准确吗?我拿来检测cocostudio结果一大堆爆出来的错误