diff options
author | Robin Burchell <robin.burchell@jollamobile.com> | 2013-11-13 14:54:49 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-20 19:25:56 +0100 |
commit | 52ba7b1ffcb90772dc97b3e9a34beee5781ed2d7 (patch) | |
tree | 7c710ebbd3896f508a4d9fb2777c6696f363b1e0 /src/plugins/platforminputcontexts | |
parent | e70ecc06b1e266b73f47291aa037114bd3d1baf7 (diff) |
Cleanup freetype data in a thread-safe way
One less obvious part of this patch: the fontCache pointer in engineData was not
safe. It isn't safe to rely on pointer addresses to verify we're cleaning up the
right thing, as a sequence of malloc()/free()/malloc() can return the same
pointer, and nothing was cleaning up the dangling pointer in engineData.
With this, it is possible to safely drop OpenGL contexts in QtQuick under all
conditions with no possibility of crashes.
Done-with: Aaron Kennedy <aaron.kennedy@jollamobile.com>
Change-Id: I7b91384251593730124323a74737d41333a05f59
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/plugins/platforminputcontexts')
0 files changed, 0 insertions, 0 deletions