Skip to content

Commit 307d7d7

Browse files
authored
Update ShellPreviewViewModel.cs
1 parent c95660e commit 307d7d7

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)