Example #1
0
int CNetscapeFontModule::releaseDisplayer()
{

    if( m_pFontDisplayerInterface != NULL )
        nffp_release( m_pFontDisplayerInterface, NULL);
    m_pFontDisplayerInterface = NULL;
    
    return( FONTERR_OK );
}
Example #2
0
int
FontDisplayerPeerObject::unload(void)
{
	if (fpType == FontDisplayerPeerObject::WF_FP_STATIC)
	{
		// Static displayer need not be unloaded.
		return (0);
	}
	if (!fontDisplayer)
	{
		// We were never loaded.
		return (-1);
	}
	nffp_release(fontDisplayer, NULL);
	fontDisplayer = NULL;
	return (dlm.unload());
}