Windows: Fix render resource not being released (#10233)

Release Notes:
- N/A
This commit is contained in:
CharlesChen0823 2024-04-10 09:46:09 +08:00 committed by GitHub
parent c763c8c64b
commit 6ac343123d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1297,6 +1297,7 @@ impl Drop for WindowsWindow {
fn drop(&mut self) {
unsafe {
let _ = RevokeDragDrop(self.inner.hwnd);
self.inner.renderer.borrow_mut().destroy();
}
}
}