X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fxml.c;h=af32ceeb4b774df72fe044e13ae18e4f3ae39eb1;hb=7e413aa7c9d60c30c86a7cd84862fc14f4920c83;hp=554305840dd71beabbec19ab2f2b80ca4942e68c;hpb=fe087a38282e93addb25fa9598393e40ea233b09;p=vlc diff --git a/src/misc/xml.c b/src/misc/xml.c index 554305840d..af32ceeb4b 100644 --- a/src/misc/xml.c +++ b/src/misc/xml.c @@ -18,13 +18,16 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif +#include #include "vlc_xml.h" +#include "../libvlc.h" /***************************************************************************** * xml_Create: @@ -36,14 +39,15 @@ xml_t *__xml_Create( vlc_object_t *p_this ) { xml_t *p_xml; - p_xml = vlc_object_create( p_this, VLC_OBJECT_XML ); + p_xml = vlc_custom_create( p_this, sizeof( *p_xml ), VLC_OBJECT_GENERIC, + "xml" ); vlc_object_attach( p_xml, p_this ); p_xml->p_module = module_Need( p_xml, "xml", 0, 0 ); if( !p_xml->p_module ) { vlc_object_detach( p_xml ); - vlc_object_destroy( p_xml ); + vlc_object_release( p_xml ); msg_Err( p_this, "XML provider not found" ); return NULL; } @@ -58,5 +62,5 @@ void xml_Delete( xml_t *p_xml ) { module_Unneed( p_xml, p_xml->p_module ); vlc_object_detach( p_xml ); - vlc_object_destroy( p_xml ); + vlc_object_release( p_xml ); }