]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/upnp_cc.cpp
Include vlc_plugin.h as needed
[vlc] / modules / services_discovery / upnp_cc.cpp
index ac9a77c0929fd9e9f8d2a7651c36d5d009c7724e..9a8eda8826f624fd5ee0c1addc2f72b4d33ffbee 100644 (file)
@@ -37,6 +37,7 @@
 #endif
 
 #include <vlc/vlc.h>
+#include <vlc_plugin.h>
 #include <vlc_playlist.h>
 
 /* FIXME: thread-safety ?? */
@@ -221,6 +222,7 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node )
         playlist_BothAddInput( p_playlist, p_input, p_parent,
                                PLAYLIST_APPEND, PLAYLIST_END, NULL, NULL,
                                false );
+        vlc_gc_decref( p_input );
     } else if ( node->isContainerNode() )
     {
         ContainerNode *conNode = (ContainerNode *)node;