[vlc-commits] Fix a memleak in UPNP

Denis Charmet git at videolan.org
Wed Apr 13 22:58:21 CEST 2011


vlc | branch: master | Denis Charmet <typx at dinauz.org> | Wed Apr 13 22:56:22 2011 +0200| [18fd4540456524bb340624bc798c2ef17d8c8c51] | committer: Jean-Baptiste Kempf

Fix a memleak in UPNP

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/services_discovery/upnp.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index e2d920b..c54688a 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -307,9 +307,8 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
     const char* psz_base_url = p_location;
 
     // Try to extract baseURL
-
     IXML_NodeList* p_url_list = ixmlDocument_getElementsByTagName( p_doc, "baseURL" );
-    if ( !p_url_list )
+    if ( p_url_list )
     {
 
         if ( IXML_Node* p_url_node = ixmlNodeList_item( p_url_list, 0 ) )



More information about the vlc-commits mailing list