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

Filip Roséen filip at atch.se
Wed Jul 25 03:54:07 CEST 2018


This is necessary for quite obvious reasons.

fixes: #20831

---

These changes have not been tested, but should be trivial enough to
get right on the first try - even though I am very tired and it's 3am.
---
 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 );
 }
-- 
2.18.0


More information about the vlc-devel mailing list