mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[win32k]
- Plug some object leaks in callproc and clipboard code svn path=/trunk/; revision=57642
This commit is contained in:
parent
b6e5342bce
commit
7aed406e55
|
@ -46,6 +46,9 @@ CreateCallProc(IN PDESKTOP Desktop,
|
|||
NewCallProc->spcpdNext = NULL;
|
||||
}
|
||||
|
||||
/* Release the extra reference (UserCreateObject added 2 references) */
|
||||
UserDereferenceObject(NewCallProc);
|
||||
|
||||
return NewCallProc;
|
||||
}
|
||||
|
||||
|
|
|
@ -211,6 +211,9 @@ IntSynthesizeDib(
|
|||
/* Add the clipboard data */
|
||||
IntAddFormatedData(pWinStaObj, CF_DIB, hMem, TRUE, TRUE);
|
||||
|
||||
/* Release the extra reference (UserCreateObject added 2 references) */
|
||||
UserDereferenceObject(pClipboardData);
|
||||
|
||||
cleanup:
|
||||
UserReleaseDC(NULL, hdc, FALSE);
|
||||
}
|
||||
|
@ -302,6 +305,9 @@ IntAddSynthesizedFormats(PWINSTATION_OBJECT pWinStaObj)
|
|||
*((LCID*)pMemObj->Data) = NtCurrentTeb()->CurrentLocale;
|
||||
IntAddFormatedData(pWinStaObj, CF_LOCALE, hMem, TRUE, TRUE);
|
||||
}
|
||||
|
||||
/* Release the extra reference (UserCreateObject added 2 references) */
|
||||
UserDereferenceObject(pMemObj);
|
||||
}
|
||||
|
||||
/* Add CF_TEXT. Note: it is synthesized in user32.dll */
|
||||
|
@ -1099,6 +1105,9 @@ NtUserConvertMemHandle(
|
|||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Release the extra reference (UserCreateObject added 2 references) */
|
||||
UserDereferenceObject(pMemObj);
|
||||
|
||||
/* If we failed to copy data, remove handle */
|
||||
if (!pMemObj)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue