]> git.sesse.net Git - vlc/commitdiff
Direct3D: do not leak textures when recycling them
authorFelix Abecassis <felix.abecassis@gmail.com>
Thu, 13 Feb 2014 09:19:05 +0000 (10:19 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Feb 2014 10:29:17 +0000 (11:29 +0100)
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

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/msw/direct3d.c

index 6b33bf43f18042dff3ab8ce4258d0ed73127035a..4b3aae899893b1afd20f49a10ad8dae638042ee2 100644 (file)
@@ -1439,6 +1439,7 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
 #endif
                 *d3dr = *cache;
                 memset(cache, 0, sizeof(*cache));
+                break;
             }
         }
         if (!d3dr->texture) {