mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
crypt32: Don't access context after releaseContext call.
This commit is contained in:
parent
03dbbe2103
commit
9adff9d026
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user