diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-01-04 13:11:52 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-01-04 13:11:52 +0100 |
commit | dcff08512e69a8eac5a6188c23fe56e8672fe5d4 (patch) | |
tree | adc80297b879455561fc3f71905245c4bb6fa022 /skins.c | |
parent | e72bff8938efd6fe2b0a01219b75a8729191f07c (diff) | |
download | vdr-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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(); +} |