| 1045 | FontHandle *font; |
| 1046 | FreetypeFontGuard() : ft(), font() { } |
| 1047 | ~FreetypeFontGuard() { |
| 1048 | if (ft) { |
| 1049 | if (font) |
| 1050 | destroyFont(font); |
| 1051 | deinitializeFreetype(ft); |
| 1052 | } |
| 1053 | } |
| 1054 | } guard; |
| 1055 | if (!(guard.ft = initializeFreetype())) |
| 1056 | ABORT("Failed to initialize FreeType library."); |
nothing calls this directly
no test coverage detected