Fixed a leak
This commit is contained in:
1 parent
ad6dbb485c
commit
c4eb66499f
1 file changed
+1
-1
@@ -224,7 +224,7 @@
|
|||||||
{
|
{
|
||||||
NSArray<__kindof NSDocument *> *documents = nil;
|
NSArray<__kindof NSDocument *> *documents = nil;
|
||||||
@synchronized(self) {
|
@synchronized(self) {
|
||||||
documents = [self.documents copy];
|
documents = [[self.documents copy] autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
for (NSDocument *doc in documents) {
|
for (NSDocument *doc in documents) {
|
||||||
|
|||||||
Reference in new issue
Block a user