From f1f0683e20bc7ffe6c8136bfecc1cd763a1866b4 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Mon, 29 May 2017 22:36:07 +0200 Subject: [PATCH] epgplus: fix segfault (thx dbo) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a56e3f81114504a53de2fd80702da82607635e98 Author: TangoCash Date: 2017-05-29 (Mon, 29 May 2017) Origin message was: ------------------ -epgplus: fix segfault (thx dbo) --- src/gui/epgplus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp index 3bfe6f4fd..dafdbb1fb 100644 --- a/src/gui/epgplus.cpp +++ b/src/gui/epgplus.cpp @@ -1383,6 +1383,8 @@ void EpgPlus::hide() if (this->header->head) { this->header->head->kill(); + delete this->header->head; + this->header->head = NULL; } this->frameBuffer->paintBackgroundBoxRel(this->usableScreenX - DETAILSLINE_WIDTH, this->usableScreenY, DETAILSLINE_WIDTH + this->usableScreenWidth, this->usableScreenHeight); }