Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #23 from ejeinc/OrientationNode-cleanup
Browse files Browse the repository at this point in the history
Detach `OrientationNode` at `deinit` correctly
  • Loading branch information
junpluse authored Apr 28, 2017
2 parents a7da1ef + 04ddaee commit ccab6cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/PanoramaView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public final class PanoramaView: UIView, SceneLoadable {
}

deinit {
scene = nil
orientationNode.removeFromParentNode()
}

public override func layoutSubviews() {
Expand Down
2 changes: 1 addition & 1 deletion Sources/StereoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public final class StereoView: UIView, SceneLoadable {
}

deinit {
scene = nil
orientationNode.removeFromParentNode()
}

public override func layoutSubviews() {
Expand Down

0 comments on commit ccab6cc

Please sign in to comment.