[ft] Fix theoretical leak
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 10 Aug 2017 05:05:08 +0000 (22:05 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 10 Aug 2017 05:05:08 +0000 (22:05 -0700)
src/hb-ft.cc

index 2a1868d..492992e 100644 (file)
@@ -632,9 +632,9 @@ hb_ft_font_create (FT_Face           ft_face,
 
        hb_font_set_var_coords_normalized (font, coords, mm_var->num_axis);
       }
-      free (coords);
-      free (ft_coords);
     }
+    free (coords);
+    free (ft_coords);
     free (mm_var);
   }
 #endif