[vlc-commits] Fixed memory leak in glwin32.

Laurent Aimar git at videolan.org
Wed Jun 1 21:19:21 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 31 20:14:33 2011 +0200| [7cc37b375fc7f5cff2d83ab275f88e46bb7e3dc0] | committer: Laurent Aimar

Fixed memory leak in glwin32.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7cc37b375fc7f5cff2d83ab275f88e46bb7e3dc0
---

 modules/video_output/msw/glwin32.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index af6a58f..fb7ec30 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -191,7 +191,8 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
     vout_display_opengl_Display(sys->vgl, &vd->source);
 
     picture_Release(picture);
-    VLC_UNUSED(subpicture);
+    if (subpicture)
+        subpicture_Delete(subpicture);
 
     CommonDisplay(vd);
 }



More information about the vlc-commits mailing list