mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed a possible segfault if VDR gets terminated while a message is displayed
This commit is contained in:
11
skins.c
11
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user