From 7f4981161c7934d145f574c58988e867bea8fe54 Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Wed, 1 May 2024 15:41:20 -0300 Subject: [PATCH] [D3D11] Fix leak on shutdown (#445) --- RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp b/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp index 9ba71046f8a..ea5917ab4f7 100644 --- a/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp +++ b/RenderSystems/Direct3D11/src/OgreD3D11RenderSystem.cpp @@ -898,6 +898,7 @@ namespace Ogre SAFE_DELETE( mDriverList ); mActiveD3DDriver = D3D11Driver(); mDevice.ReleaseAll(); + SAFE_DELETE( mVendorExtension ); LogManager::getSingleton().logMessage("D3D11: Shutting down cleanly."); SAFE_DELETE( mHardwareBufferManager ); SAFE_DELETE( mGpuProgramManager );