mirror of
https://github.com/mii443/qemu.git
synced 2025-08-30 10:59:53 +00:00
Use glib memory allocation and free functions
qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
@ -17,7 +17,7 @@ vevent_new(VEventType type, VReader *reader, VCard *card)
|
||||
{
|
||||
VEvent *new_vevent;
|
||||
|
||||
new_vevent = (VEvent *)qemu_malloc(sizeof(VEvent));
|
||||
new_vevent = (VEvent *)g_malloc(sizeof(VEvent));
|
||||
new_vevent->next = NULL;
|
||||
new_vevent->type = type;
|
||||
new_vevent->reader = vreader_reference(reader);
|
||||
@ -34,7 +34,7 @@ vevent_delete(VEvent *vevent)
|
||||
}
|
||||
vreader_free(vevent->reader);
|
||||
vcard_free(vevent->card);
|
||||
qemu_free(vevent);
|
||||
g_free(vevent);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user