mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-17 23:51:31 +00:00
- fixed a small memory leak in the texture manager.
This commit is contained in:
parent
075cce98c4
commit
82eae78f7e
1 changed files with 10 additions and 2 deletions
|
@ -592,8 +592,16 @@ bool FMaterial::TrimBorders(int *rect)
|
||||||
}
|
}
|
||||||
|
|
||||||
int size = w*h;
|
int size = w*h;
|
||||||
if (size == 1) return false;
|
if (size == 1)
|
||||||
|
{
|
||||||
|
// nothing to be done here.
|
||||||
|
rect[0] = 0;
|
||||||
|
rect[1] = 0;
|
||||||
|
rect[2] = 1;
|
||||||
|
rect[3] = 1;
|
||||||
|
delete[] buffer;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
int first, last;
|
int first, last;
|
||||||
|
|
||||||
for(first = 0; first < size; first++)
|
for(first = 0; first < size; first++)
|
||||||
|
|
Loading…
Reference in a new issue