mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 05:28:14 +00:00
[WIN32K]
fix a memory leak in error case svn path=/trunk/; revision=67383
This commit is contained in:
parent
050de17f6a
commit
10295ad9df
1 changed files with 6 additions and 2 deletions
|
@ -150,8 +150,12 @@ NtGdiGetDeviceGammaRamp(
|
|||
}
|
||||
|
||||
Ret = IntGetDeviceGammaRamp((HDEV)dc->ppdev, SafeRamp);
|
||||
|
||||
if (!Ret) return Ret;
|
||||
if (!Ret)
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePoolWithTag(SafeRamp, GDITAG_ICM);
|
||||
return Ret;
|
||||
}
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue