fix another potential memory leak
This commit is contained in:
parent
afedd103e8
commit
8a0a4fb898
@ -27,3 +27,8 @@ ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ContentGfxCache::~ContentGfxCache()
|
||||
{
|
||||
delete[] sideregions;
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ class ContentGfxCache {
|
||||
UVRegion* sideregions;
|
||||
public:
|
||||
ContentGfxCache(const Content* content, Assets* assets);
|
||||
~ContentGfxCache();
|
||||
|
||||
inline const UVRegion& getRegion(blockid_t id, int side) const {
|
||||
return sideregions[id * 6 + side];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user