[vlc-commits] direct3d9: fix memory leak
Hannes Domani
git at videolan.org
Mon Jul 6 19:23:49 CEST 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Mon Jun 29 20:39:27 2015 +0200| [4273eeac910eae224d1c57b490c4183101f5a900] | committer: Jean-Baptiste Kempf
direct3d9: fix memory leak
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4273eeac910eae224d1c57b490c4183101f5a900
---
modules/video_output/msw/direct3d9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
index 6c74cd9..779b078 100644
--- a/modules/video_output/msw/direct3d9.c
+++ b/modules/video_output/msw/direct3d9.c
@@ -340,8 +340,8 @@ error:
if (vd->sys->pool == NULL && pictures) {
for (unsigned i=0;i<picture_count; ++i)
DestroyPicture(pictures[i]);
- free(pictures);
}
+ free(pictures);
return vd->sys->pool;
}
More information about the vlc-commits
mailing list