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); }
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); }