[USF] return if calloc fails.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Oct 2008 11:11:00 +0000 (13:11 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 16 Oct 2008 11:13:38 +0000 (13:13 +0200)
Close CID: 171

modules/codec/subtitles/subsusf.c

index d300ac0..c088b3d 100644 (file)
@@ -643,7 +643,7 @@ static void ParseUSFHeaderTags( decoder_t *p_dec, xml_reader_t *p_xml_reader )
                     if( ! p_style )
                     {
                         free( psz_node );
                     if( ! p_style )
                     {
                         free( psz_node );
-                        break;
+                        return VLC_ENOMEM;
                     }
                     /* All styles are supposed to default to Default, and then
                      * one or more settings are over-ridden.
                     }
                     /* All styles are supposed to default to Default, and then
                      * one or more settings are over-ridden.