Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jul 10, 2017
2 parents d2c8a5c + 2e33165 commit e274410
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/g_shared/hudmessages.cpp
Expand Up @@ -150,7 +150,7 @@ DHUDMessage::DHUDMessage (FFont *font, const char *text, float x, float y, int h
//
//============================================================================

DHUDMessage::~DHUDMessage ()
void DHUDMessage::OnDestroy()
{
if (Lines)
{
Expand All @@ -164,6 +164,7 @@ DHUDMessage::~DHUDMessage ()
if (SourceText != NULL)
{
delete[] SourceText;
SourceText = nullptr;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/g_statusbar/sbar.h
Expand Up @@ -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);

Expand Down

0 comments on commit e274410

Please sign in to comment.