Browse Source

Ensure field is initialized. (#17218)

Steven Kirk 1 year ago
parent
commit
cb4b69894a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      native/Avalonia.Native/src/OSX/WindowBaseImpl.h

+ 1 - 1
native/Avalonia.Native/src/OSX/WindowBaseImpl.h

@@ -109,7 +109,7 @@ protected:
     bool _isModal;
 
 public:
-    WindowBaseImpl* Parent;
+    WindowBaseImpl* Parent = nullptr;
     NSWindow * Window;
     ComPtr<IAvnWindowBaseEvents> BaseEvents;
 };