Skip to content

I think BAKAuthenticatingCreateMessageCoordinator leaks due to typo in startCreation method #8

@hacknicity

Description

@hacknicity

Hi Soroush, I've been looking over the code because I'm keen to use Coordinators in my next project. I have stumbled across what looks like a simple typo that I think will cause a reference cycle in BAKAuthenticatingCreateMessageCoordinator. In the startCreation method:

- (void)startCreation {
    self.createMessageCoordinator.delegate = self;
    [self.createMessageCoordinator start];
    [self.childCoordinators addObject:self.childCoordinators];  // <<-- here
}

the object being added to the childCoordinators array should be self.createMessageCoordinator and not self.childCoordinators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions