Fixed a possible segfault if VDR gets terminated while a message is displayed

This commit is contained in:
Klaus Schmidinger
2007-01-04 13:11:52 +01:00
parent e72bff8938
commit dcff08512e
5 changed files with 21 additions and 4 deletions

11
skins.c
View File

@@ -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();
}