gus: Do not manually free the state, qdev does it for us
authormalc <av1474@comtv.ru>
Fri, 11 Sep 2009 06:27:41 +0000 (10:27 +0400)
committermalc <av1474@comtv.ru>
Fri, 11 Sep 2009 22:50:58 +0000 (02:50 +0400)
Signed-off-by: malc <av1474@comtv.ru>

hw/gus.c

index 3df10e2..543b4ea 100644 (file)
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -268,7 +268,6 @@ static int gus_initfn (ISADevice *dev)
 
     if (!s->voice) {
         AUD_remove_card (&s->card);
-        qemu_free (s);
         return -1;
     }