summaryrefslogtreecommitdiff
path: root/skins.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-01-04 13:11:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-01-04 13:11:52 +0100
commitdcff08512e69a8eac5a6188c23fe56e8672fe5d4 (patch)
treeadc80297b879455561fc3f71905245c4bb6fa022 /skins.c
parente72bff8938efd6fe2b0a01219b75a8729191f07c (diff)
downloadvdr-dcff08512e69a8eac5a6188c23fe56e8672fe5d4.tar.gz
vdr-dcff08512e69a8eac5a6188c23fe56e8672fe5d4.tar.bz2
Fixed a possible segfault if VDR gets terminated while a message is displayed
Diffstat (limited to 'skins.c')
-rw-r--r--skins.c11
1 files changed, 10 insertions, 1 deletions
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<cSkin>::Clear();
+}