This commit is contained in:
Rachael Alexanderson 2017-07-10 11:39:46 -04:00
commit e2744102c5
2 changed files with 3 additions and 2 deletions

View file

@ -150,7 +150,7 @@ DHUDMessage::DHUDMessage (FFont *font, const char *text, float x, float y, int h
//
//============================================================================
DHUDMessage::~DHUDMessage ()
void DHUDMessage::OnDestroy()
{
if (Lines)
{
@ -164,6 +164,7 @@ DHUDMessage::~DHUDMessage ()
if (SourceText != NULL)
{
delete[] SourceText;
SourceText = nullptr;
}
}

View file

@ -66,7 +66,7 @@ class DHUDMessage : public DObject
public:
DHUDMessage (FFont *font, const char *text, float x, float y, int hudwidth, int hudheight,
EColorRange textColor, float holdTime);
virtual ~DHUDMessage ();
virtual void OnDestroy () override;
virtual void Serialize(FSerializer &arc);