Commit 18fd4540 authored by Denis Charmet's avatar Denis Charmet Committed by Jean-Baptiste Kempf

Fix a memleak in UPNP

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent cf979349
...@@ -307,9 +307,8 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc, ...@@ -307,9 +307,8 @@ void MediaServer::parseDeviceDescription( IXML_Document* p_doc,
const char* psz_base_url = p_location; const char* psz_base_url = p_location;
// Try to extract baseURL // Try to extract baseURL
IXML_NodeList* p_url_list = ixmlDocument_getElementsByTagName( p_doc, "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 ) ) if ( IXML_Node* p_url_node = ixmlNodeList_item( p_url_list, 0 ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment