mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Release mapped surface memory on size check failure to plug a leak.
This commit is contained in:
parent
918ef0183a
commit
f3a19b8e9b
1 changed files with 2 additions and 0 deletions
|
|
@ -7990,6 +7990,8 @@ GetSurfaceDataImpl(mozilla::gfx::DataSourceSurface* aSurface,
|
|||
&maxBufLen,
|
||||
&bufLen);
|
||||
if (NS_FAILED(rv)) {
|
||||
// Release mapped memory
|
||||
aSurface->Unmap();
|
||||
return GetSurfaceDataContext::NullValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue