[vlc-commits] access: screen: Close: release blend filter if created

Filip Roséen git at videolan.org
Wed Jul 25 11:50:41 CEST 2018


vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 03:54:07 2018 +0200| [f0981be9dd07a14e10969e1acc19df176adafaaf] | committer: Jean-Baptiste Kempf

access: screen: Close: release blend filter if created

This is necessary for quite obvious reasons.

fixes: #20831
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit efe3eabd5c411e0c24be90209503889945ee1070)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/access/screen/screen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index 59eaaa6eca..927d9c8c6b 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -260,6 +260,11 @@ static void Close( vlc_object_t *p_this )
 #ifdef SCREEN_MOUSE
     if( p_sys->p_mouse )
         picture_Release( p_sys->p_mouse );
+    if( p_sys->p_blend )
+    {
+        module_unneed( p_sys->p_blend, p_sys->p_blend->p_module );
+        vlc_object_release( p_sys->p_blend );
+    }
 #endif
     free( p_sys );
 }



More information about the vlc-commits mailing list