diff options
author | louis <louis.braun@gmx.de> | 2015-01-07 17:29:58 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-01-07 17:29:58 +0100 |
commit | 85d3f0efbd4da1e864d0f4dc3406dbca60330781 (patch) | |
tree | 9ab8affbd75a6bad3f6d9237618a750a9ca59f92 | |
parent | 5d83b13943f3b9cd1196c4082991b4cf46f56959 (diff) | |
download | vdr-plugin-skindesigner-85d3f0efbd4da1e864d0f4dc3406dbca60330781.tar.gz vdr-plugin-skindesigner-85d3f0efbd4da1e864d0f4dc3406dbca60330781.tar.bz2 |
fixed two possible null pointer accesses in displaymenurootview
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | views/displaymenurootview.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -139,3 +139,4 @@ Version 0.1.1 Version 0.1.2 - display only active remote timers in main menu +- fixed two possible null pointer accesses in displaymenurootview diff --git a/views/displaymenurootview.c b/views/displaymenurootview.c index 556e19a..59910c1 100644 --- a/views/displaymenurootview.c +++ b/views/displaymenurootview.c @@ -434,6 +434,8 @@ void cDisplayMenuRootView::RenderMenuScrollBar(int Total, int Offset) { } bool cDisplayMenuRootView::RenderDynamicElements(void) { + if (!view) + return false; bool updated = false; if (view->DrawTime()) { updated = true; @@ -606,6 +608,8 @@ void cDisplayMenuRootView::DrawMessage(eMessageType type, const char *text) { } void cDisplayMenuRootView::Action(void) { + if (!view) + return; SetInitFinished(); Render(); view->Start(); |