gfxmenu/theme_loader: Add missing allos error check.
Found by: Coverity scan.
This commit is contained in:
parent
bd74a925e5
commit
af0be976bf
1 changed files with 2 additions and 0 deletions
|
@ -774,6 +774,8 @@ grub_gfxmenu_view_load_theme (grub_gfxmenu_view_t view, const char *theme_path)
|
|||
view->canvas->component.ops->destroy (view->canvas);
|
||||
|
||||
view->canvas = grub_gui_canvas_new ();
|
||||
if (!view->canvas)
|
||||
goto fail;
|
||||
((grub_gui_component_t) view->canvas)
|
||||
->ops->set_bounds ((grub_gui_component_t) view->canvas,
|
||||
&view->screen);
|
||||
|
|
Loading…
Reference in a new issue