Commit 4fa2ca55 authored by Rémi Duraffort's avatar Rémi Duraffort

rss: fix object leak.

parent 13310047
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include <vlc_xml.h> #include <vlc_xml.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include "vlc_image.h" #include <vlc_image.h>
#include <time.h> #include <time.h>
...@@ -717,6 +717,7 @@ static int FetchRSS( filter_t *p_filter) ...@@ -717,6 +717,7 @@ static int FetchRSS( filter_t *p_filter)
if( !p_stream ) if( !p_stream )
{ {
msg_Err( p_filter, "Failed to open %s for reading", psz_feed ); msg_Err( p_filter, "Failed to open %s for reading", psz_feed );
xml_Delete( p_xml );
return 1; return 1;
} }
...@@ -724,6 +725,7 @@ static int FetchRSS( filter_t *p_filter) ...@@ -724,6 +725,7 @@ static int FetchRSS( filter_t *p_filter)
if( !p_xml_reader ) if( !p_xml_reader )
{ {
msg_Err( p_filter, "Failed to open %s for parsing", psz_feed ); msg_Err( p_filter, "Failed to open %s for parsing", psz_feed );
xml_Delete( p_xml );
return 1; return 1;
} }
......
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