CHintBox: ensure remove timeout bar from screen if hintbox object is closed

Timeout bar is not embedded like other cc items in this form, therefor is
is better to kill this object explicit from screen otherwise it is possible
we hab artefacts after closing of hintbox window.


Origin commit data
------------------
Commit: 6580c5a54a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-21 (Fri, 21 Oct 2016)

Origin message was:
------------------
CHintBox: ensure remove timeout bar from screen if hintbox object is closed

Timeout bar is not embedded like other cc items in this form, therefor is
is better to kill this object explicit from screen otherwise it is possible
we hab artefacts after closing of hintbox window.
This commit is contained in:
2016-10-21 09:21:39 +02:00
parent c004c30056
commit c8c22653a1

View File

@@ -167,6 +167,7 @@ void CHintBox::init(const std::string& Text, const int& Width, const std::string
CHintBox::~CHintBox() CHintBox::~CHintBox()
{ {
if(timeout_pb){ if(timeout_pb){
timeout_pb->kill(); //ensure cleanup from screen
delete timeout_pb; timeout_pb = NULL; delete timeout_pb; timeout_pb = NULL;
} }
if(timeout_pb_timer){ if(timeout_pb_timer){