summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-05-23 13:20:14 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:40 +0200
commit77e5a13e503e22ab3df0a08a78a1fbf435c7f6cb (patch)
treea6c92e9eb4f901160d1027b1f21820d1953ab9c6
parentc3392661e031d01b9cba19ad25f91462c5fb8116 (diff)
downloadlibass-77e5a13e503e22ab3df0a08a78a1fbf435c7f6cb.tar.bz2
libass-77e5a13e503e22ab3df0a08a78a1fbf435c7f6cb.tar.xz
directwrite: wire up destroy callbacks
-rw-r--r--libass/ass_directwrite.cpp6
1 files 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 *