qemu-e2k/hw/input
Philippe Mathieu-Daudé 6e782ffd55 hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array
Commit 0be6bfac62 ("qdev: Implement variable length array properties")
added the DEFINE_PROP_ARRAY() macro with the following comment:

  * It is the responsibility of the device deinit code to free the
  * @_arrayfield memory.

Commit a75f336b97 added:

  DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons,
                    keycodes, qdev_prop_uint32, uint32_t),

but forgot to free the 'keycodes' array. Do it in the instance_finalize
handler.

Fixes: a75f336b97 ("hw/input/stellaris_input: Convert to qdev")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231121174051.63038-7-philmd@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-11-27 15:27:46 +00:00
..
Kconfig hw/input/stellaris_input: Rename to stellaris_gamepad 2023-11-02 12:52:06 +00:00
adb-internal.h
adb-kbd.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00
adb-mouse.c Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
adb.c migration: Use vmstate_register_any() 2023-11-01 16:13:58 +01:00
ads7846.c migration: Use vmstate_register_any() 2023-11-01 16:13:58 +01:00
hid.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00
lasips2.c lasips2: LASI PS/2 devices are not user-createable 2023-10-17 23:13:19 +02:00
lm832x.c hw/input/lm832x: Define TYPE_LM8323 in public header 2021-07-08 14:15:01 -05:00
meson.build hw/input/stellaris_input: Rename to stellaris_gamepad 2023-11-02 12:52:06 +00:00
pckbd.c pckbd: remove legacy i8042_mm_init() function 2022-07-18 19:28:46 +01:00
pl050.c pl050: don't use legacy ps2_mouse_init() function 2022-07-18 19:28:46 +01:00
ps2.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00
pxa2xx_keypad.c Use g_new() & friends where that makes obvious sense 2022-03-21 15:44:44 +01:00
stellaris_gamepad.c hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array 2023-11-27 15:27:46 +00:00
trace-events ps2: remove unused legacy ps2_mouse_init() function 2022-07-18 19:28:46 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
tsc210x.c audio: propagate Error * out of audio_init 2023-10-03 10:29:40 +02:00
tsc2005.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
vhost-user-input.c vhost-user: fully use new backend/frontend naming 2023-06-26 09:50:00 -04:00
virtio-input-hid.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00
virtio-input-host.c hw: replace qemu_set_nonblock() 2022-05-03 15:52:33 +04:00
virtio-input.c virtio: drop name parameter for virtio_init() 2022-05-16 04:38:40 -04:00