void Allocation::operator delete(void* ptr) { if (ptr) { Allocation *a = (Allocation*) ptr; a->getContext()->mHal.funcs.freeRuntimeMem(ptr); } }