[vlc-commits] commit: quartztext: do not call CFRelease on a NULL pointer. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Sat Oct 9 14:38:02 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Oct  9 14:07:11 2010 +0200| [79ab3b7208c864e12e699f9df4c917baaac21f31] | committer: Rémi Duraffort 

quartztext: do not call CFRelease on a NULL pointer.
(cherry picked from commit bf7f847fd5e57d1a0991177f99242917ed18ad32)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 modules/misc/quartztext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/misc/quartztext.c b/modules/misc/quartztext.c
index 732f276..17060ba 100644
--- a/modules/misc/quartztext.c
+++ b/modules/misc/quartztext.c
@@ -382,8 +382,8 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
                                              CFRangeMake( 0, len ), p_attrString);
 
         RenderYUVA( p_filter, p_region_out, p_attrString );
+        CFRelease( p_attrString );
     }
-    CFRelease(p_attrString);
 
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list