rss: fix object leak.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 30 Jun 2009 18:11:03 +0000 (20:11 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 30 Jun 2009 19:22:00 +0000 (21:22 +0200)
modules/video_filter/rss.c

index 244c871..5f407d6 100644 (file)
@@ -46,7 +46,7 @@
 #include <vlc_xml.h>
 #include <vlc_charset.h>
 
-#include "vlc_image.h"
+#include <vlc_image.h>
 
 #include <time.h>
 
@@ -717,6 +717,7 @@ static int FetchRSS( filter_t *p_filter)
         if( !p_stream )
         {
             msg_Err( p_filter, "Failed to open %s for reading", psz_feed );
+            xml_Delete( p_xml );
             return 1;
         }
 
@@ -724,6 +725,7 @@ static int FetchRSS( filter_t *p_filter)
         if( !p_xml_reader )
         {
             msg_Err( p_filter, "Failed to open %s for parsing", psz_feed );
+            xml_Delete( p_xml );
             return 1;
         }