]> granicus.if.org Git - libass/commitdiff
Fix possible free of unallocated memory.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 11 May 2008 19:49:57 +0000 (19:49 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 11 May 2008 19:49:57 +0000 (19:49 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26741 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_fontconfig.c

index 289318ba75ef0c759b76e4ee437d7b6eeebd6052..58dc10be6ed0607b234aee2ed75cfacb47b581d8 100644 (file)
@@ -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;