[vlc-commits] direct3d9: Fix potential leak
Hugo Beauzée-Luyssen
git at videolan.org
Tue Feb 14 15:30:40 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 14 15:05:59 2017 +0100| [56cdbe48f65951b82e0775067c47cbee0aaef788] | committer: Hugo Beauzée-Luyssen
direct3d9: Fix potential leak
CID #1402721
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56cdbe48f65951b82e0775067c47cbee0aaef788
---
modules/video_output/win32/direct3d9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index c0379dc..f190e65 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -363,6 +363,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
NULL);
if (FAILED(hr)) {
msg_Err(vd, "Failed to allocate surface %d (hr=0x%0lx)", picture_count, hr);
+ free(picsys);
goto error;
}
More information about the vlc-commits
mailing list