[vlc-devel] commit: rss: fix object leak. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Jun 30 21:40:08 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jun 30 20:11:03 2009 +0200| [4fa2ca55c03c80333838ba96c3eb2d8e5e20b6ad] | committer: Rémi Duraffort
rss: fix object leak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4fa2ca55c03c80333838ba96c3eb2d8e5e20b6ad
---
modules/video_filter/rss.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/rss.c b/modules/video_filter/rss.c
index 244c871..5f407d6 100644
--- a/modules/video_filter/rss.c
+++ b/modules/video_filter/rss.c
@@ -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;
}
More information about the vlc-devel
mailing list