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

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


vlc | branch: master | Filip Roséen <filip at atch.se> | Wed Jul 25 03:54:07 2018 +0200| [efe3eabd5c411e0c24be90209503889945ee1070] | 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>

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

 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 6d7bbec588..c2b27c5c76 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -263,6 +263,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