fix: reparenting UAF crash on macOS (#38603)

This commit is contained in:
Shelley Vohr 2023-06-08 12:18:37 +02:00 committed by GitHub
parent 9a9d8ae5ea
commit 5ee890fb6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 10 deletions

View file

@ -157,6 +157,7 @@ class NativeWindowMac : public NativeWindow,
bool IsActive() const override;
// Remove the specified child window without closing it.
void RemoveChildWindow(NativeWindow* child) override;
void RemoveChildFromParentWindow(NativeWindow* child);
// Attach child windows, if the window is visible.
void AttachChildren() override;
// Detach window from parent without destroying it.