mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed two possible null pointer accesses in displaymenurootview
This commit is contained in:
parent
5d83b13943
commit
85d3f0efbd
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();
|
||||
|
Loading…
Reference in New Issue
Block a user