[vlc-commits] MSW/WinGDI: remove no-op

Rémi Denis-Courmont git at videolan.org
Sun Jul 14 19:30:40 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 14 20:05:45 2013 +0300| [64d7f4fca7fa18b103281880a79757238e1f3b5c] | committer: Rémi Denis-Courmont

MSW/WinGDI: remove no-op

free(NULL)

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

 modules/video_output/msw/wingdi.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/msw/wingdi.c b/modules/video_output/msw/wingdi.c
index 7ead2b4..749d5b8 100644
--- a/modules/video_output/msw/wingdi.c
+++ b/modules/video_output/msw/wingdi.c
@@ -298,10 +298,8 @@ static int Init(vout_display_t *vd,
         cfg.picture_count = 1;
         cfg.picture = &picture;
         sys->pool = picture_pool_NewExtended(&cfg);
-    } else {
-        free(rsc.p_sys);
+    } else
         sys->pool = NULL;
-    }
 
     UpdateRects(vd, NULL, NULL, true);
 



More information about the vlc-commits mailing list