Skip to content

Commit 949d0a2

Browse files
committed
Use weak reference
1 parent e3d62cd commit 949d0a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devdocs-macos/DocumentationWindowController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class DocumentationWindowController: NSWindowController {
77

88
var documentation: Documentation!
99
private var observations: Set<NSKeyValueObservation>!
10-
private var contentSearchField: NSSearchField?
10+
private weak var contentSearchField: NSSearchField?
1111

1212
override var windowNibName: NSNib.Name? {
1313
return NSNib.Name("DocumentationWindow")

0 commit comments

Comments
 (0)