[vlc-devel] [PATCH 1/3] direct3d11: fix memory leak
Steve Lhomme
robux4 at videolabs.io
Fri Feb 10 15:04:35 CET 2017
Now that d3d11va uses our pool directly, we need to release the ID3D11VideoDecoderOutputView
it sets on our pictures.
---
modules/video_output/win32/direct3d11.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ceaf065..4ec32e6 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -907,6 +907,10 @@ static void ReleasePictureResources(picture_sys_t *p_sys)
ID3D11DeviceContext_Release(p_sys->context);
p_sys->context = NULL;
}
+ if (p_sys->decoder) {
+ ID3D11VideoDecoderOutputView_Release(p_sys->decoder);
+ p_sys->decoder = NULL;
+ }
}
static void DestroyDisplayPoolPicture(picture_t *picture)
--
2.10.2
More information about the vlc-devel
mailing list