From: Paul Gofman pgofman@codeweavers.com
--- dlls/crypt32/store.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index f41aad2c3ff..565368714b1 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -195,6 +195,11 @@ static context_t *MemStore_enumContext(WINE_MEMSTORE *store, struct list *list, return ret; }
+static void memstore_free_context(context_t *context) +{ + Context_Free(context); +} + static BOOL MemStore_deleteContext(WINE_MEMSTORE *store, context_t *context) { BOOL in_list = FALSE; @@ -208,7 +213,7 @@ static BOOL MemStore_deleteContext(WINE_MEMSTORE *store, context_t *context) LeaveCriticalSection(&store->cs);
if(in_list && !context->ref) - Context_Free(context); + memstore_free_context(context); return TRUE; }
@@ -220,7 +225,7 @@ static void free_contexts(struct list *list) { TRACE("freeing %p\n", context); list_remove(&context->u.entry); - Context_Free(context); + memstore_free_context(context); } }
@@ -228,7 +233,7 @@ static void MemStore_releaseContext(WINECRYPT_CERTSTORE *store, context_t *conte { /* Free the context only if it's not in a list. Otherwise it may be reused later. */ if(list_empty(&context->u.entry)) - Context_Free(context); + memstore_free_context(context); }
static BOOL MemStore_addCert(WINECRYPT_CERTSTORE *store, context_t *cert,