crypt32: When removing contexts from a list, make sure the context no longer references the list.

This commit is contained in:
Juan Lang 2009-10-30 16:43:24 -07:00 committed by Alexandre Julliard
parent 976c6ff3f8
commit fb5e0d8a4d
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ void ContextList_Delete(struct ContextList *list, void *context)
EnterCriticalSection(&list->cs);
list_remove(entry);
LeaveCriticalSection(&list->cs);
list_init(entry);
list->contextInterface->free(context);
}