Fix small memory issue

This commit is contained in:
Gregory John Casamento 2020-07-05 14:02:20 -04:00
parent 4fca61ede1
commit 6ddb3b0233

View file

@ -500,6 +500,7 @@ static NSStoryboard *__mainStoryboard = nil;
NSArray *windowControllers = [document nodesForXPath: @"//windowController" error: NULL];
NSArray *viewControllers = [document nodesForXPath: @"//viewController" error: NULL];
NSArray *controllerPlaceholders = [document nodesForXPath: @"//controllerPlaceholder" error: NULL];
RELEASE(doc);
if ([windowControllers count] > 0)
{
@ -597,7 +598,7 @@ static NSStoryboard *__mainStoryboard = nil;
// Create document...
[_scenesMap setObject: document
forKey: sceneId];
// Map controllerId's to scenes...
if (controllerId != nil)
{