예제 #1
0
파일: test.cpp 프로젝트: sourcey/libsourcey
int finalize()
{
    bool passed = TestRunner::getDefault().passed();
    singleton.destroy();

    // Finalize the garbage collector to ensure memory if freed before exiting.
    GarbageCollector::instance().finalize();

    return passed ? 0 : 1;
}
예제 #2
0
파일: memory.cpp 프로젝트: xaccc/libsourcey
void GarbageCollector::destroy()
{
	singleton.destroy();
}