示例#1
0
static void MemAllocator_Destroy(MemAllocator* This)
{
    Debug printf("MemAllocator_Destroy(%p) called  (%d, %d)\n", This, This->refcount, AllocatorKeeper);
    if (--AllocatorKeeper == 0)
	UnregisterComClass(&CLSID_MemoryAllocator, MemAllocator_CreateAllocator);
    free(This->vt);
    free(This);
}
示例#2
0
文件: graph.c 项目: 0p1pp1/mplayer
static void FilterGraph_Destroy(FilterGraph* This)
{
    Debug printf("FilterGraph_Destroy(%p) called  (%d, %d)\n", This, This->refcount, GraphKeeper);
#ifdef WIN32_LOADER
    if (--GraphKeeper == 0)
        UnregisterComClass(&CLSID_FilterGraph, FilterGraph_CreateGraph);
#endif
    free(This->vt);
    free(This);
}