]> git.proxmox.com Git - qemu.git/blobdiff - hw/g364fb.c
Use glib memory allocation and free functions
[qemu.git] / hw / g364fb.c
index a41e9887999e777893ae89013e4e97d2cfec2b97..b3020c5a60918a40f342b632c19a5f18d525ca21 100644 (file)
@@ -590,7 +590,7 @@ int g364fb_mm_init(target_phys_addr_t vram_base,
     G364State *s;
     int io_ctrl;
 
-    s = qemu_mallocz(sizeof(G364State));
+    s = g_malloc0(sizeof(G364State));
 
     s->vram_size = 8 * 1024 * 1024;
     s->vram_offset = qemu_ram_alloc(NULL, "g364fb.vram", s->vram_size);