summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-01-07 17:29:58 +0100
committerlouis <louis.braun@gmx.de>2015-01-07 17:29:58 +0100
commit85d3f0efbd4da1e864d0f4dc3406dbca60330781 (patch)
tree9ab8affbd75a6bad3f6d9237618a750a9ca59f92
parent5d83b13943f3b9cd1196c4082991b4cf46f56959 (diff)
downloadvdr-plugin-skindesigner-85d3f0efbd4da1e864d0f4dc3406dbca60330781.tar.gz
vdr-plugin-skindesigner-85d3f0efbd4da1e864d0f4dc3406dbca60330781.tar.bz2
fixed two possible null pointer accesses in displaymenurootview
-rw-r--r--HISTORY1
-rw-r--r--views/displaymenurootview.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 229a61f..a9bcac2 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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();