From 77e5a13e503e22ab3df0a08a78a1fbf435c7f6cb Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 23 May 2015 13:20:14 +0200 Subject: directwrite: wire up destroy callbacks --- libass/ass_directwrite.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 * -- cgit v1.2.3