[vlc-commits] direct3d11: fix memory leak
Steve Lhomme
git at videolan.org
Fri Feb 10 15:06:55 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Feb 10 15:04:35 2017 +0100| [da0a497dd61103ab67c4a2da455d34d28499c238] | committer: Jean-Baptiste Kempf
direct3d11: fix memory leak
Now that d3d11va uses our pool directly, we need to release the ID3D11VideoDecoderOutputView
it sets on our pictures.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=da0a497dd61103ab67c4a2da455d34d28499c238
---
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)
More information about the vlc-commits
mailing list