[vlc-devel] [PATCH] Direct3D: do not leak textures when recycling them
Felix Abecassis
felix.abecassis at gmail.com
Thu Feb 13 10:19:05 CET 2014
If several textures from the cache (i.e. used during the previous
call) are matching we invalidate all of them but only keep the last
one. We therefore lose all references to the other ones.
Close #10248
---
modules/video_output/msw/direct3d.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 6b33bf4..7bc12c7 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -1439,6 +1439,7 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
#endif
*d3dr = *cache;
memset(cache, 0, sizeof(*cache));
+ break;
}
}
if (!d3dr->texture) {
--
1.7.10.4
More information about the vlc-devel
mailing list