fixed crash when clearing a message in displaychannel and displayreplay

This commit is contained in:
louis 2014-11-15 09:50:39 +01:00
parent be3b49f695
commit f89c95be3b
3 changed files with 3 additions and 0 deletions

View File

@ -57,4 +57,5 @@ Version 0.0.3
- added tokens {month}, {monthname} and {year} in displaymenutimers listitem and currentitem
- added dedicated tokens for posters and banners in <srapercontent> in displaychannel and displayreplay
- added Plugin Interface
- fixed crash when clearing a message in displaychannel and displayreplay

View File

@ -515,6 +515,7 @@ string cDisplayChannelView::GetChannelSep(const cChannel *channel, bool prev) {
void cDisplayChannelView::DisplayMessage(eMessageType Type, const char *Text) {
if (!Text) {
ClearViewElement(veMessage);
return;
}
map < string, string > stringTokens;

View File

@ -352,6 +352,7 @@ void cDisplayReplayView::DrawJump(const char *jump) {
void cDisplayReplayView::DrawMessage(eMessageType type, const char *text) {
if (!text) {
ClearViewElement(veMessage);
return;
}
map < string, string > stringTokens;