From: Grigori Goronzy Date: Sat, 23 May 2015 11:20:14 +0000 (+0200) Subject: directwrite: wire up destroy callbacks X-Git-Tag: 0.13.0~28^2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77e5a13e503e22ab3df0a08a78a1fbf435c7f6cb;p=libass directwrite: wire up destroy callbacks --- diff --git a/libass/ass_directwrite.cpp b/libass/ass_directwrite.cpp index ea495e9..f00b7b8 100644 --- a/libass/ass_directwrite.cpp +++ b/libass/ass_directwrite.cpp @@ -132,7 +132,7 @@ static int check_glyph(void *data, uint32_t code) return exists; } -static void destroy(void* priv) +static void destroy_provider(void *priv) { ((IDWriteFactory*)priv)->Release(); } @@ -263,9 +263,9 @@ static void scan_fonts(IDWriteFactory *factory, ASS_FontProvider *provider) static ASS_FontProviderFuncs directwrite_callbacks = { get_data, check_glyph, + destroy_font, + destroy_provider, NULL, - destroy, - NULL }; ASS_FontProvider *