gfxmenu/theme_loader: Add missing allos error check.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-26 09:37:39 +01:00
parent bd74a925e5
commit af0be976bf

View file

@ -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->component.ops->destroy (view->canvas);
view->canvas = grub_gui_canvas_new (); view->canvas = grub_gui_canvas_new ();
if (!view->canvas)
goto fail;
((grub_gui_component_t) view->canvas) ((grub_gui_component_t) view->canvas)
->ops->set_bounds ((grub_gui_component_t) view->canvas, ->ops->set_bounds ((grub_gui_component_t) view->canvas,
&view->screen); &view->screen);