[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:26:12 CEST 2010


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

quartztext: do not call CFRelease on a NULL pointer.

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

 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 b1dd12a..57b599e 100644
--- a/modules/misc/quartztext.c
+++ b/modules/misc/quartztext.c
@@ -366,8 +366,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