Fixed winproc memory leak.

This commit is contained in:
Dave Hawkes 2002-02-28 21:43:06 +00:00 committed by Alexandre Julliard
parent ad079d6cbb
commit 60502143d2
1 changed files with 9 additions and 1 deletions

View File

@ -448,7 +448,15 @@ BOOL WINPROC_SetProc( HWINDOWPROC *pFirst, WNDPROC16 func,
if (((*ppPrev)->type == type) &&
(func == WINPROC_THUNKPROC(*ppPrev)))
{
bRecycle = TRUE;
if((*ppPrev)->user == user)
{
bRecycle = TRUE;
}
else
{
WINPROC_FreeProc( *ppPrev, user );
*ppPrev = NULL;
}
break;
}
}