qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] main: allocate gui_timer only once.
Date: Thu, 10 Jun 2010 18:15:21 +0000	[thread overview]
Message-ID: <AANLkTilKc7FsCyUEYmed-_Slw8aSf8zHBR3FAHCT401T@mail.gmail.com> (raw)
In-Reply-To: <20100527053847.GD31807@valinux.co.jp>

Thanks, applied.

On Thu, May 27, 2010 at 5:38 AM, Isaku Yamahata <yamahata@valinux.co.jp> wrote:
> fix memory leak.
> there is no need to allocate more than one gui_timer.
>
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
>  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
>
>
>

      reply	other threads:[~2010-06-10 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27  5:38 [Qemu-devel] [PATCH] main: allocate gui_timer only once Isaku Yamahata
2010-06-10 18:15 ` Blue Swirl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTilKc7FsCyUEYmed-_Slw8aSf8zHBR3FAHCT401T@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yamahata@valinux.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).