[vlc-devel] commit: p_vlm destruction fixes ( Sébastien Escudier )
git version control
git at videolan.org
Fri Jun 5 16:31:17 CEST 2009
vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Wed May 27 11:43:16 2009 +0200| [47c08526afb6abfdc580ddd3a2fe8c316faf77cf] | committer: Rémi Denis-Courmont
p_vlm destruction fixes
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47c08526afb6abfdc580ddd3a2fe8c316faf77cf
---
src/control/core.c | 2 ++
src/control/vlm.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/control/core.c b/src/control/core.c
index da2a9b2..7a06221 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -176,6 +176,8 @@ void libvlc_release( libvlc_instance_t *p_instance )
vlc_mutex_destroy( &p_instance->event_callback_lock );
if( p_instance->p_event_manager )
libvlc_event_manager_release( p_instance->p_event_manager );
+ if( p_instance->p_vlm )
+ vlm_Delete( p_instance->p_vlm );
libvlc_InternalCleanup( p_instance->p_libvlc_int );
libvlc_InternalDestroy( p_instance->p_libvlc_int );
free( p_instance );
diff --git a/src/control/vlm.c b/src/control/vlm.c
index 2942d80..824d57d 100644
--- a/src/control/vlm.c
+++ b/src/control/vlm.c
@@ -218,6 +218,7 @@ void libvlc_vlm_release( libvlc_instance_t *p_instance,
VLM(p_vlm);
vlm_Delete( p_vlm );
+ p_instance->p_vlm = NULL;
}
void libvlc_vlm_add_broadcast( libvlc_instance_t *p_instance,
More information about the vlc-devel
mailing list