mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
Convert last qemu_free and qemu_malloc uses
7267c0947d
missed
a few cases, fix them.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
c76c8416be
commit
58a06675d3
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue