[vlc-commits] vout: win32: drawable: fix leaking known hwnd table
Steve Lhomme
git at videolan.org
Mon May 11 09:14:05 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 7 14:05:51 2020 +0200| [72c10ed11fde80b334787f5b6df49f285cf19478] | committer: Steve Lhomme
vout: win32: drawable: fix leaking known hwnd table
When the last hwnd is removed there is only element which holds NULL.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72c10ed11fde80b334787f5b6df49f285cf19478
---
modules/video_output/drawable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/drawable.c b/modules/video_output/drawable.c
index 63dc6c8e87..f9db604d56 100644
--- a/modules/video_output/drawable.c
+++ b/modules/video_output/drawable.c
@@ -80,7 +80,7 @@ static void RemoveDrawable(uintptr_t val)
used[n] = used[n + 1];
while (used[++n] != 0);
- if (n == 0)
+ if (n == 1)
{
free (used);
used = NULL;
More information about the vlc-commits
mailing list