Skip to content
Snippets Groups Projects
Commit 60502143 authored by Dave Hawkes's avatar Dave Hawkes Committed by Alexandre Julliard
Browse files

Fixed winproc memory leak.

parent ad079d6c
No related branches found
Tags wine-961102
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment