diff options
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r-- | ui/cocoa.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 515e684dd2..d9e4e3dcaa 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -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; |