mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-04 08:44:32 +00:00
Don't destroy NULL view
This commit is contained in:
parent
9f293ab0df
commit
a2b4c09b1c
@ -136,6 +136,8 @@ grub_gfxmenu_view_new (const char *theme_path, grub_gfxmenu_model_t model)
|
||||
void
|
||||
grub_gfxmenu_view_destroy (grub_gfxmenu_view_t view)
|
||||
{
|
||||
if (!view)
|
||||
return;
|
||||
grub_video_bitmap_destroy (view->desktop_image);
|
||||
if (view->terminal_box)
|
||||
view->terminal_box->destroy (view->terminal_box);
|
||||
|
Loading…
Reference in New Issue
Block a user