[vlc-commits] UPNP: unregister client on Close()
Konstantin Pavlov
git at videolan.org
Sat Mar 5 12:15:14 CET 2011
vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Feb 25 17:35:43 2011 +0300| [aff01a3a8d5736fee8ac163ac6e29adca05986de] | committer: Konstantin Pavlov
UPNP: unregister client on Close()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aff01a3a8d5736fee8ac163ac6e29adca05986de
---
modules/services_discovery/upnp.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 87cda19..27eb808 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -136,7 +136,9 @@ static void Close( vlc_object_t *p_this )
{
services_discovery_t *p_sd = ( services_discovery_t* )p_this;
+ UpnpUnRegisterClient( p_sd->p_sys->client_handle );
UpnpFinish();
+
delete p_sd->p_sys->p_server_list;
vlc_mutex_destroy( &p_sd->p_sys->callback_lock );
More information about the vlc-commits
mailing list