mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +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);
|
Ret = IntGetDeviceGammaRamp((HDEV)dc->ppdev, SafeRamp);
|
||||||
|
if (!Ret)
|
||||||
if (!Ret) return Ret;
|
{
|
||||||
|
DC_UnlockDc(dc);
|
||||||
|
ExFreePoolWithTag(SafeRamp, GDITAG_ICM);
|
||||||
|
return Ret;
|
||||||
|
}
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue