| 311 | } |
| 312 | |
| 313 | void grFont::free() { |
| 314 | if (m_FontHandle == -1) |
| 315 | return; |
| 316 | |
| 317 | return; |
| 318 | |
| 319 | //!! Removed the following assert because there are bugs in the reference count system. Matt, 11-15-97. |
| 320 | //!! ASSERT(grFont::m_FontList[m_FontHandle].references > 0); |
| 321 | //@@ |
| 322 | // free font if there was only one reference left. |
| 323 | //@@ if (grFont::m_FontList[m_FontHandle].references == 1) { |
| 324 | //@@ gr_font_record *ft; |
| 325 | //@@ |
| 326 | //@@ // free up all memory allocated to this font. |
| 327 | //@@ ft = &grFont::m_FontList[m_FontHandle]; |
| 328 | //@@ |
| 329 | //@@ grFont::free_font(ft); |
| 330 | //@@ } |
| 331 | //@@ |
| 332 | //@@ grFont::m_FontList[m_FontHandle].references--; |
| 333 | m_FontHandle = -1; |
| 334 | } |
| 335 | |
| 336 | void grFont::free_font(gr_font_record *ft) { |
| 337 | int i; |
no outgoing calls
no test coverage detected