[vlc-commits] Direct2D: release factory and dll
Hannes Domani
git at videolan.org
Sun Feb 8 16:18:25 CET 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Sun Feb 8 12:57:19 2015 +0100| [0cee6c308ae964104b311b66b087fc0c6b9a9fc6] | committer: Jean-Baptiste Kempf
Direct2D: release factory and dll
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0cee6c308ae964104b311b66b087fc0c6b9a9fc6
---
modules/video_output/msw/direct2d.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_output/msw/direct2d.c b/modules/video_output/msw/direct2d.c
index fb279d4..f612262 100644
--- a/modules/video_output/msw/direct2d.c
+++ b/modules/video_output/msw/direct2d.c
@@ -177,6 +177,11 @@ static void Close(vlc_object_t *object)
CommonClean(vd);
+ if (vd->sys->d2_factory)
+ ID2D1Factory_Release(vd->sys->d2_factory);
+ if (vd->sys->d2_dll)
+ FreeLibrary(vd->sys->d2_dll);
+
free(vd->sys);
}
More information about the vlc-commits
mailing list