void IDirectFBFont_Destruct( IDirectFBFont *thiz ) { IDirectFBFont_data *data = (IDirectFBFont_data*)thiz->priv; dfb_font_destroy (data->font); DIRECT_DEALLOCATE_INTERFACE( thiz ); }
void IDirectFBFont_Destruct( IDirectFBFont *thiz ) { IDirectFBFont_data *data = (IDirectFBFont_data*)thiz->priv; D_DEBUG_AT( Font, "%s( %p )\n", __FUNCTION__, thiz ); dfb_font_destroy (data->font); /* release memory, if any */ if (data->content) { if (data->content_mapped) munmap( data->content, data->content_size ); else D_FREE( data->content ); } DIRECT_DEALLOCATE_INTERFACE( thiz ); }