Skip to content
Snippets Groups Projects
Commit 0f2ad63f authored by Isaku Yamahata's avatar Isaku Yamahata Committed by Blue Swirl
Browse files

main: allocate gui_timer only once.


fix memory leak.
there is no need to allocate more than one gui_timer.

Signed-off-by: default avatarIsaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 60a3992e
No related branches found
No related tags found
No related merge requests found
......@@ -3794,6 +3794,7 @@ int main(int argc, char **argv, char **envp)
if (dcl->dpy_refresh != NULL) {
ds->gui_timer = qemu_new_timer(rt_clock, gui_update, ds);
qemu_mod_timer(ds->gui_timer, qemu_get_clock(rt_clock));
break;
}
dcl = dcl->next;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment