diff options
author | louis <louis.braun@gmx.de> | 2014-11-15 09:50:39 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-11-15 09:50:39 +0100 |
commit | f89c95be3bf34b6a24b83ee6b5ba2ec499160004 (patch) | |
tree | 79f467b9230fa913cef0f6dff93e6a24c28ca4f5 | |
parent | be3b49f695ca8cffef906d893fb2f6f205f75898 (diff) | |
download | vdr-plugin-skindesigner-f89c95be3bf34b6a24b83ee6b5ba2ec499160004.tar.gz vdr-plugin-skindesigner-f89c95be3bf34b6a24b83ee6b5ba2ec499160004.tar.bz2 |
fixed crash when clearing a message in displaychannel and displayreplay
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | views/displaychannelview.c | 1 | ||||
-rw-r--r-- | views/displayreplayview.c | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -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 diff --git a/views/displaychannelview.c b/views/displaychannelview.c index 626658f..0c0d8fd 100644 --- a/views/displaychannelview.c +++ b/views/displaychannelview.c @@ -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; diff --git a/views/displayreplayview.c b/views/displayreplayview.c index 5777590..680eea6 100644 --- a/views/displayreplayview.c +++ b/views/displayreplayview.c @@ -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; |