]> granicus.if.org Git - libass/commitdiff
directwrite: wire up destroy callbacks
authorGrigori Goronzy <greg@chown.ath.cx>
Sat, 23 May 2015 11:20:14 +0000 (13:20 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:42:40 +0000 (10:42 +0200)
libass/ass_directwrite.cpp

index ea495e9280f20d83cb1bc4ba8a643268822243f2..f00b7b8f1d52b5eca1a36af2d0ce4e87482ac19e 100644 (file)
@@ -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 *