mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[win32k]
- Move dereferencing of the MessageQueue from co_UserDestroyWindow to co_UserFreeWindow. A reference is added to the MessageQueue for all windows created.co_UserFreeWindow is called for all windows and needs to be where the dereferencing of MessageQueue occurs. This fixes NonPagedPool memory leak. See bug 6112 for more info. svn path=/trunk/; revision=51345
This commit is contained in:
parent
3b717045b6
commit
a2b8986a0d
1 changed files with 2 additions and 2 deletions
|
@ -448,6 +448,8 @@ static LRESULT co_UserFreeWindow(PWND Window,
|
|||
/* flush the message queue */
|
||||
MsqRemoveWindowMessagesFromQueue(Window);
|
||||
|
||||
IntDereferenceMessageQueue(Window->head.pti->MessageQueue);
|
||||
|
||||
/* from now on no messages can be sent to this window anymore */
|
||||
Window->state |= WNDS_DESTROYED;
|
||||
Window->fnid |= FNID_FREED;
|
||||
|
@ -2508,8 +2510,6 @@ BOOLEAN FASTCALL co_UserDestroyWindow(PWND Window)
|
|||
}
|
||||
}
|
||||
|
||||
IntDereferenceMessageQueue(Window->head.pti->MessageQueue);
|
||||
|
||||
IntEngWindowChanged(Window, WOC_DELETE);
|
||||
|
||||
if (!IntIsWindow(Window->head.h))
|
||||
|
|
Loading…
Reference in a new issue