aboutsummaryrefslogtreecommitdiff
path: root/ui/cocoa.m
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-08-21 18:42:08 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-08-21 18:42:08 +0000
commit58a06675d39955e80154c36cff5113bb30e078a7 (patch)
tree97a6a32528ffecad1608bc550c2508dcc4334577 /ui/cocoa.m
parentc76c8416be5631dfdbd13799d3c67ad670637155 (diff)
Convert last qemu_free and qemu_malloc uses
7267c0947d7e8ae5dff7bafd932c3bc285f43e5c missed a few cases, fix them. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r--ui/cocoa.m6
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;