[vlc-commits] src: fix pointers being freed that were not allocated

Felix Paul Kühne git at videolan.org
Mon Oct 26 12:04:07 CET 2015


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Oct 26 12:03:01 2015 +0100| [6d290427ced07674abb174cfbf97e62590a4ba3b] | committer: Felix Paul Kühne

src: fix pointers being freed that were not allocated

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

 src/misc/text_style.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/text_style.c b/src/misc/text_style.c
index 76ab4a9..cd7789b 100644
--- a/src/misc/text_style.c
+++ b/src/misc/text_style.c
@@ -147,9 +147,9 @@ text_style_t *text_style_Duplicate( const text_style_t *p_src )
 
 void text_style_Delete( text_style_t *p_style )
 {
-    if( p_style )
+    if( p_style->psz_fontname )
         free( p_style->psz_fontname );
-    if( p_style )
+    if( p_style->psz_monofontname )
         free( p_style->psz_monofontname );
     free( p_style );
 }



More information about the vlc-commits mailing list