Esempio n. 1
0
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();
}
Esempio n. 2
0
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();
}