kernel: Fix missing reference release in CreateThreadEvent.
CreateThreadEvent::DoDPC() missed a reference release to balance the acquired reference before queuing the DPC, resulting in the CreateThreadEvent objects being leaked. This also removes the destructor that tried to cancel the DPC. Since the class is reference counted and only destroyed when the DPC has run and released the last reference, this didn't make much sense.
This commit is contained in:
@@ -86,8 +86,6 @@ private:
|
||||
|
||||
|
||||
struct CreateThreadEvent : UserEvent, private DPCCallback {
|
||||
~CreateThreadEvent();
|
||||
|
||||
static CreateThreadEvent* Create(
|
||||
const ThreadCreationAttributes& attributes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user