[vlc-devel] commit: Fix the same vout leak when vlc_clone fails ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Mar 6 21:53:27 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Mar 6 22:41:46 2009 +0200| [7410f0f5c072bff2df1c582192755eb1f25e1b71] | committer: Rémi Denis-Courmont
Fix the same vout leak when vlc_clone fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7410f0f5c072bff2df1c582192755eb1f25e1b71
---
src/video_output/video_output.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index f4143f5..d31b246 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -533,6 +533,9 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
{
module_unneed( p_vout, p_vout->p_module );
p_vout->p_module = NULL;
+ spu_Attach( p_vout->p_spu, p_vout, false );
+ spu_Destroy( p_vout->p_spu );
+ p_vout->p_spu = NULL;
vlc_object_release( p_vout );
return NULL;
}
More information about the vlc-devel
mailing list