]> git.sesse.net Git - vlc/commitdiff
[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 d300ac042cd3e39f0798f1709c43bb7a4a6bb846..c088b3d226d14ed39ea6e049b75ccbdf2862d123 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 );
-                        break;
+                        return VLC_ENOMEM;
                     }
                     /* All styles are supposed to default to Default, and then
                      * one or more settings are over-ridden.