ole32: Release the storage object in DataCache_Destroy.

This commit is contained in:
Rob Shearman 2009-11-29 10:30:02 +00:00 committed by Alexandre Julliard
parent f2f50f18dc
commit add909a021
1 changed files with 6 additions and 0 deletions

View File

@ -234,6 +234,12 @@ static void DataCache_Destroy(
LIST_FOR_EACH_ENTRY_SAFE(cache_entry, next_cache_entry, &ptrToDestroy->cache_list, DataCacheEntry, entry)
DataCacheEntry_Destroy(cache_entry);
if (ptrToDestroy->presentationStorage != NULL)
{
IStorage_Release(ptrToDestroy->presentationStorage);
ptrToDestroy->presentationStorage = NULL;
}
/*
* Free the datacache pointer.
*/