]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/cocoa.m
Convert last qemu_free and qemu_malloc uses
[mirror_qemu.git] / ui / cocoa.m
index 515e684dd21e3a4fad27e8a5728d8aa4de3c1b3f..d9e4e3dcaa45ba40b10f35d3486c570ac80c47f0 100644 (file)
@@ -1004,15 +1004,15 @@ static void cocoa_refresh(DisplayState *ds)
 static void cocoa_cleanup(void)
 {
     COCOA_DEBUG("qemu_cocoa: cocoa_cleanup\n");
-       qemu_free(dcl);
+    g_free(dcl);
 }
 
 void cocoa_display_init(DisplayState *ds, int full_screen)
 {
     COCOA_DEBUG("qemu_cocoa: cocoa_display_init\n");
 
-       dcl = qemu_mallocz(sizeof(DisplayChangeListener));
-       
+    dcl = g_malloc0(sizeof(DisplayChangeListener));
+
     // register vga output callbacks
     dcl->dpy_update = cocoa_update;
     dcl->dpy_resize = cocoa_resize;