[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] main: allocate gui_timer only once.
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] [PATCH] main: allocate gui_timer only once. |
Date: |
Thu, 27 May 2010 14:38:47 +0900 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
fix memory leak.
there is no need to allocate more than one gui_timer.
Signed-off-by: Isaku Yamahata <address@hidden>
---
vl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/vl.c b/vl.c
index 417554f..22cdf43 100644
--- a/vl.c
+++ b/vl.c
@@ -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;
}
--
1.6.6.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] main: allocate gui_timer only once.,
Isaku Yamahata <=