From dcff08512e69a8eac5a6188c23fe56e8672fe5d4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 4 Jan 2007 13:11:52 +0100 Subject: Fixed a possible segfault if VDR gets terminated while a message is displayed --- skins.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'skins.c') diff --git a/skins.c b/skins.c index 34b26382..f442e5ad 100644 --- a/skins.c +++ b/skins.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.c 1.12 2006/12/01 13:32:37 kls Exp $ + * $Id: skins.c 1.13 2007/01/04 13:08:55 kls Exp $ */ #include "skins.h" @@ -358,3 +358,12 @@ void cSkins::Flush(void) if (cSkinDisplay::Current()) cSkinDisplay::Current()->Flush(); } + +void cSkins::Clear(void) +{ + if (displayMessage) { + delete displayMessage; + displayMessage = NULL; + } + cList::Clear(); +} -- cgit v1.2.3