From f044f1283fc7b8154e302d6f26eb70c583dc5cb5 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 24 Sep 2014 13:18:09 +0400 Subject: [PATCH] gui/widget/hintbox.cpp: use hide() in dtor Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/31d5811bc3c1380e9c95e63d7636e155b02009c9 Author: [CST] Focus Date: 2014-09-24 (Wed, 24 Sep 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/hintbox.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gui/widget/hintbox.cpp b/src/gui/widget/hintbox.cpp index 835ae95b6..31a5aa21d 100644 --- a/src/gui/widget/hintbox.cpp +++ b/src/gui/widget/hintbox.cpp @@ -130,11 +130,7 @@ void CHintBox::init(const char * const Caption, const char * const Text, const i CHintBox::~CHintBox(void) { - if (window != NULL) - { - delete window; - window = NULL; - } + hide(); free(message); }