thunderbrew/src/util/Autorelease.mm
2023-01-02 13:17:18 -06:00

10 lines
210 B
Plaintext

#include "util/Autorelease.hpp"
System_Autorelease::ScopedPool::ScopedPool() {
this->pool = [[NSAutoreleasePool alloc] init];
}
System_Autorelease::ScopedPool::~ScopedPool() {
[this->pool release];
}