[vlc-commits] podcast: close input with input_Close()

Rémi Denis-Courmont git at videolan.org
Tue Mar 12 17:46:51 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar  6 19:18:39 2019 +0200| [184b1ea0903e69d11720bcf351c6d91de4d9b183] | committer: Rémi Denis-Courmont

podcast: close input with input_Close()

vlc_object_release() is incorrect and will leak.

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

 modules/services_discovery/podcast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c
index c05333cf52..0113d21731 100644
--- a/modules/services_discovery/podcast.c
+++ b/modules/services_discovery/podcast.c
@@ -216,7 +216,7 @@ static input_thread_t *InputCreateAndStart( services_discovery_t *sd,
     if( input != NULL && input_Start( input ) )
     {
         input_LegacyVarInit( input );
-        vlc_object_release( input );
+        input_Close(input);
         input = NULL;
     }
     return input;



More information about the vlc-commits mailing list