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 3df10e29e7e4159d8b75ffbf96b1b78afb4a3fb1..543b4ea68c4b46b42ce3debe9423e53ecd78cf72 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;
     }