mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
plug QRegion memory leak
upstream commit:
d9e1a0f05b
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4c689d31ff
commit
62805d4c22
1 changed files with 3 additions and 1 deletions
|
@ -3420,8 +3420,10 @@ static QRegionPrivate *PolygonRegion(const QPoint *Pts, int Count, int rule)
|
|||
return region;
|
||||
}
|
||||
|
||||
if (!(pETEs = static_cast<EdgeTableEntry *>(malloc(sizeof(EdgeTableEntry) * Count))))
|
||||
if (!(pETEs = static_cast<EdgeTableEntry *>(malloc(sizeof(EdgeTableEntry) * Count)))) {
|
||||
delete region;
|
||||
return 0;
|
||||
}
|
||||
|
||||
region->vectorize();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue