Commit 9adff9d0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

crypt32: Don't access context after releaseContext call.

parent 03dbbe21
......@@ -111,10 +111,12 @@ void Context_Release(context_t *context)
assert(ref >= 0);
if (!ref) {
WINECRYPT_CERTSTORE *store = context->store;
/* This is the last reference, but the context still may be in a store.
* We release our store reference, but leave it up to store to free or keep the context. */
context->store->vtbl->releaseContext(context->store, context);
context->store->vtbl->release(context->store, 0);
store->vtbl->releaseContext(store, context);
store->vtbl->release(store, 0);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment