aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-11 19:49:57 +0000
committerGravatar eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-11 19:49:57 +0000
commit38836c783795a66d98ec2f010a532a6c6e81ff22 (patch)
tree71d88b9ddc6219d5d73052c0842cd4a61f91fcfc
parent08d224b68dd38808434c630fb100ddb1109ddf2d (diff)
Fix possible free of unallocated memory.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26741 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libass/ass_fontconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
index 289318ba75..58dc10be6e 100644
--- a/libass/ass_fontconfig.c
+++ b/libass/ass_fontconfig.c
@@ -75,7 +75,7 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
{
FcBool rc;
FcResult result;
- FcPattern *pat = 0, *rpat;
+ FcPattern *pat = 0, *rpat = 0;
int r_index, r_slant, r_weight;
FcChar8 *r_family, *r_style, *r_file, *r_fullname;
FcBool r_outline, r_embolden;