summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsFont.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-01-27 00:14:13 -0800
committerStephen Hines <srhines@google.com>2011-01-27 19:36:54 -0800
commit38f8d9d7a17037a34f4df229b1089536a6cdc8dc (patch)
tree860fe9cead9a082b87a466210cba1eb98fadf694 /libs/rs/rsFont.h
parent64a2c359aeda59e4bc43d48f31ade919e918ea26 (diff)
downloadframeworks_base-38f8d9d7a17037a34f4df229b1089536a6cdc8dc.zip
frameworks_base-38f8d9d7a17037a34f4df229b1089536a6cdc8dc.tar.gz
frameworks_base-38f8d9d7a17037a34f4df229b1089536a6cdc8dc.tar.bz2
Correctly free resouces bound to scripts when the scripts are deleted.
Change-Id: Idfcc30f1a7de0badeb6d8254ed508938d89f4070 b: 3381615
Diffstat (limited to 'libs/rs/rsFont.h')
-rw-r--r--libs/rs/rsFont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsFont.h b/libs/rs/rsFont.h
index 00d77c8..4820999 100644
--- a/libs/rs/rsFont.h
+++ b/libs/rs/rsFont.h
@@ -119,6 +119,7 @@ protected:
Font(Context *rsc);
bool init(const char *name, float fontSize, uint32_t dpi, const void *data = NULL, uint32_t dataLen = 0);
+ virtual void preDestroy() const;
FT_Face mFace;
bool mInitialized;
bool mHasKerning;