[vlc-commits] display: fix leak on error

Rémi Denis-Courmont git at videolan.org
Fri Dec 28 20:33:32 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 28 21:00:29 2018 +0200| [6626ad44e8d7a601bb415bfeae56f076c67eb1cc] | committer: Rémi Denis-Courmont

display: fix leak on error

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

 src/video_output/display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 1735c59417..48baeb6b2f 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -967,6 +967,7 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
                                      vout_display_start, vd, &osys->cfg,
                                      &vd->fmt, NULL);
         if (vd->module == NULL) {
+            video_format_Clean(&vd->source);
             vlc_object_release(vd);
             goto error;
         }



More information about the vlc-commits mailing list