commit | 0f2ad63fcb75c9679ff7d47f6b2235dfc646de35 | [log] [tgz] |
---|---|---|
author | Isaku Yamahata <yamahata@valinux.co.jp> | Thu May 27 14:38:47 2010 +0900 |
committer | Blue Swirl <blauwirbel@gmail.com> | Thu Jun 10 16:48:06 2010 +0000 |
tree | 37dc4f4a4bb4bb209c31ef0936ba6554091b8a64 | |
parent | 60a3992e759d92b9111871b0881e65519c750b01 [diff] [blame] |
main: allocate gui_timer only once. fix memory leak. there is no need to allocate more than one gui_timer. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/vl.c b/vl.c index 6d08ec8..3d7ce52 100644 --- a/vl.c +++ b/vl.c
@@ -3794,6 +3794,7 @@ 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; }