Module: wine Branch: master Commit: add909a0210259c763c3ee7e087503fc8d146451 URL: http://source.winehq.org/git/wine.git/?a=commit;h=add909a0210259c763c3ee7e08...
Author: Rob Shearman robertshearman@gmail.com Date: Sun Nov 29 10:30:02 2009 +0000
ole32: Release the storage object in DataCache_Destroy.
---
dlls/ole32/datacache.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index a258980..ead53fe 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -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. */