[vlc-commits] display: fix leak on error

Rémi Denis-Courmont git at videolan.org
Sat Apr 25 09:24:48 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 25 10:12:46 2015 +0300| [7be6cf315bde2d5d1bab73a161d3a122ee7216f2] | committer: Rémi Denis-Courmont

display: fix leak on error

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

 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 643ce44..4bc14d1 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -470,6 +470,7 @@ static int VoutDisplayCreateRender(vout_display_t *vd)
 
     if (filter == NULL) {
         msg_Err(vd, "Failed to adapt decoder format to display");
+        filter_chain_Delete(osys->filters);
         return -1;
     }
     return 0;



More information about the vlc-commits mailing list