mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed two possible null pointer accesses in displaymenurootview
This commit is contained in:
1
HISTORY
1
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
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user