Skip to content

Commit

Permalink
Fix issue that caused modals to stay on screen if they were released …
Browse files Browse the repository at this point in the history
…from memory (#326)
  • Loading branch information
kasper committed Mar 24, 2023
1 parent 66e1772 commit 7f9b158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Release: dd.mm.yyyy

- Fix issue that caused modals not to adjust to a custom weight if no font was provided ([#314](https://github.com/kasper/phoenix/issues/314)).
- Fix issue that caused input modals not to have a fixed width ([#324](https://github.com/kasper/phoenix/issues/324)).
- Fix issue that caused modals to stay on screen if they were released from memory ([#326](https://github.com/kasper/phoenix/issues/326)).

### API

Expand Down
1 change: 1 addition & 0 deletions Phoenix/PHModalWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ - (instancetype)init {
#pragma mark - Deallocing

- (void)dealloc {
[super close];
[self removeObserverForKeyPaths:[PHModalWindowController keyPaths]];
[[NSNotificationCenter defaultCenter] removeObserver:self name:PHContextWillLoadNotification object:nil];
}
Expand Down

0 comments on commit 7f9b158

Please sign in to comment.