コード例 #1
0
ファイル: qmcunit.cpp プロジェクト: meltingsnowman/qmlc
QmcUnit::~QmcUnit()
{
    delete header;
    delete qmlUnit;
    compilationUnit->deref();
    for (int i = 0; i < allocations.size(); i++) {
        QV4::ExecutableAllocator::Allocation *a = allocations[i];
        a->deallocate(QQmlEnginePrivate::get(engine)->v4engine()->executableAllocator);
    }
    allocations.clear();
}
コード例 #2
0
ファイル: qmcunit.cpp プロジェクト: RichardsATcn/qmlc
QmcUnit::~QmcUnit()
{
    delete header;
    //delete qmlUnit; QV4::CompiledData::CompilationUnit::unlink() frees this.
    compilationUnit->data = NULL; // Otherwise attempts to free it.
    compilationUnit->deref();
    for (int i = 0; i < allocations.size(); i++) {
        QV4::ExecutableAllocator::Allocation *a = allocations[i];
        a->deallocate(QQmlEnginePrivate::get(engine)->v4engine()->executableAllocator);
    }
    allocations.clear();
}