From 5f0b2a7f54d53e92b8209d09c92756dc5ac9c95c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 1 Jan 2021 11:12:22 -0800 Subject: [PATCH] Fixed resource leak with D3D11 NV12 textures --- Xcode/SDL/SDL.xcodeproj/project.pbxproj | 0 build-scripts/config.guess | 0 build-scripts/config.sub | 0 src/render/direct3d11/SDL_render_d3d11.c | 2 ++ 4 files changed, 2 insertions(+) mode change 100644 => 100755 Xcode/SDL/SDL.xcodeproj/project.pbxproj mode change 100755 => 100644 build-scripts/config.guess mode change 100755 => 100644 build-scripts/config.sub diff --git a/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/Xcode/SDL/SDL.xcodeproj/project.pbxproj old mode 100644 new mode 100755 diff --git a/build-scripts/config.guess b/build-scripts/config.guess old mode 100755 new mode 100644 diff --git a/build-scripts/config.sub b/build-scripts/config.sub old mode 100755 new mode 100644 diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c index d814abc5d..3ceb1a83f 100644 --- a/src/render/direct3d11/SDL_render_d3d11.c +++ b/src/render/direct3d11/SDL_render_d3d11.c @@ -1240,6 +1240,8 @@ D3D11_DestroyTexture(SDL_Renderer * renderer, SAFE_RELEASE(data->mainTextureResourceViewU); SAFE_RELEASE(data->mainTextureV); SAFE_RELEASE(data->mainTextureResourceViewV); + SAFE_RELEASE(data->mainTextureNV); + SAFE_RELEASE(data->mainTextureResourceViewNV); SDL_free(data->pixels); SDL_free(data); texture->driverdata = NULL;