[vlc-devel] commit: demux_podcast: fix potential segfault ( introduced by previous cleanups). ( Rémi Duraffort )

git version control git at videolan.org
Mon Aug 17 14:36:04 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug  6 11:10:38 2009 +0200| [c2538e2665dbc63294bc7949d913cb044851d00e] | committer: Rémi Duraffort 

demux_podcast: fix potential segfault (introduced by previous cleanups).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2538e2665dbc63294bc7949d913cb044851d00e
---

 modules/demux/playlist/podcast.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index 135600f..1cfbb1a 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -383,7 +383,8 @@ error:
 
     if( p_xml_reader )
         xml_ReaderDelete( p_xml, p_xml_reader );
-    xml_Delete( p_xml );
+    if( p_xml )
+        xml_Delete( p_xml );
 
     HANDLE_PLAY_AND_RELEASE;
     return -1;




More information about the vlc-devel mailing list