[vlc-devel] [PATCH] Fix a memleak in UPNP

Denis Charmet typx at dinauz.org
Wed Apr 13 17:21:40 CEST 2011


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

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 27eb808..707c84e 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -309,7 +309,7 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
     // 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 ) )
-- 
1.5.6.5




More information about the vlc-devel mailing list