mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Fix memory leak due to IHardwareTexture forward declaration
This commit is contained in:
parent
6de9d83b81
commit
c9612b0cab
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
||||||
#include "tarray.h"
|
#include "tarray.h"
|
||||||
#include "hw_ihwtexture.h"
|
#include "hw_ihwtexture.h"
|
||||||
#include "palettecontainer.h"
|
#include "palettecontainer.h"
|
||||||
|
#include "hw_ihwtexture.h" // Note: this cannot be a forward declaration due to the inlined delete statement below.
|
||||||
|
|
||||||
struct FTextureBuffer;
|
struct FTextureBuffer;
|
||||||
class IHardwareTexture;
|
|
||||||
|
|
||||||
enum ECreateTexBufferFlags
|
enum ECreateTexBufferFlags
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ private:
|
||||||
|
|
||||||
void Delete()
|
void Delete()
|
||||||
{
|
{
|
||||||
if (hwTexture) delete hwTexture;
|
delete hwTexture;
|
||||||
hwTexture = nullptr;
|
hwTexture = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue