Skip to content

Commit 693ffab

Browse files
committed
Update ShellPreviewViewModel.cs
1 parent 6f2f7f5 commit 693ffab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/ViewModels/UserControls/Previews/ShellPreviewViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private unsafe bool ChildWindowToXaml(nint parent, UIElement presenter)
188188
using ComPtr<IDXGIDevice> pDXGIDevice = default;
189189
using ComPtr<IDCompositionDevice> pDCompositionDevice = default;
190190
using ComPtr<IUnknown> pControlSurface = default;
191-
ComPtr<IDCompositionVisual> pChildVisual = default; // This should not be disposed this; otherwise, it will crash
191+
ComPtr<IDCompositionVisual> pChildVisual = default; // Don't dispose this one, it's used by the compositor
192192

193193
// Create the D3D11 device
194194
foreach (var driverType in driverTypes)

0 commit comments

Comments
 (0)