Commit 134f4a7b authored by Laurent Aimar's avatar Laurent Aimar

Fixed order between xmlFreeTextReader and xmlCleanupParser.

 I am not sure it had consequences, but it seems more logical and
it follows the libxml2 code example I found (reader1.c).
parent 45991a80
...@@ -179,12 +179,12 @@ static void ReaderClose( vlc_object_t *p_this ) ...@@ -179,12 +179,12 @@ static void ReaderClose( vlc_object_t *p_this )
{ {
xml_reader_t *p_reader = (xml_reader_t *)p_this; xml_reader_t *p_reader = (xml_reader_t *)p_this;
xmlFreeTextReader( (void *)p_reader->p_sys );
#ifdef LIBXML_GETS_A_CLUE_ABOUT_REENTRANCY_AND_MEMORY_LEAKS #ifdef LIBXML_GETS_A_CLUE_ABOUT_REENTRANCY_AND_MEMORY_LEAKS
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
xmlCleanupParser(); xmlCleanupParser();
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
#endif #endif
xmlFreeTextReader( (void *)p_reader->p_sys );
} }
static int ReaderUseDTD ( xml_reader_t *p_reader ) static int ReaderUseDTD ( xml_reader_t *p_reader )
......
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