Change-Id: I5434fbd146e9d8dcc0000327c5a5b953bc744b83
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
{
MemoryManager::GCBlocker gcBlocker(memoryManager);
- stringPool = new StringPool;
- memoryManager->setStringPool(stringPool);
+ stringPool.reset(new StringPool);
+ memoryManager->setStringPool(stringPool.data());
memoryManager->setExecutionEngine(this);
rootContext = newContext();
{
delete globalObject.asObject();
delete rootContext;
- delete stringPool;
qDeleteAll(functions);
}
QVector<ExceptionHandler> unwindStack;
Value exception;
- struct StringPool *stringPool;
+ QScopedPointer<struct StringPool> stringPool;
QVector<Function *> functions;
ExecutionEngine(MemoryManager *memoryManager, EvalISelFactory *iselFactory);