* grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear

grub_gfxmenu_timeout_notifications.
	(grub_gfxmenu_view_destroy): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-05-03 14:02:49 +02:00
parent b5a2114d76
commit a4f9a5ff92
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
grub_gfxmenu_timeout_notifications.
(grub_gfxmenu_view_destroy): Likewise.
2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.

View file

@ -58,6 +58,14 @@ grub_gfxmenu_view_new (const char *theme_path,
if (! view)
return 0;
while (grub_gfxmenu_timeout_notifications)
{
struct grub_gfxmenu_timeout_notify *p;
p = grub_gfxmenu_timeout_notifications;
grub_gfxmenu_timeout_notifications = grub_gfxmenu_timeout_notifications->next;
grub_free (p);
}
view->screen.x = 0;
view->screen.y = 0;
view->screen.width = width;
@ -105,6 +113,13 @@ grub_gfxmenu_view_destroy (grub_gfxmenu_view_t view)
{
if (!view)
return;
while (grub_gfxmenu_timeout_notifications)
{
struct grub_gfxmenu_timeout_notify *p;
p = grub_gfxmenu_timeout_notifications;
grub_gfxmenu_timeout_notifications = grub_gfxmenu_timeout_notifications->next;
grub_free (p);
}
grub_video_bitmap_destroy (view->desktop_image);
if (view->terminal_box)
view->terminal_box->destroy (view->terminal_box);