Volker Rümelin 95fad99cb2 hw/audio/fmopl: fix segmentation fault
Current code allocates the memory for ENV_CURVE too late. Move
allocation to OPLOpenTable() and deallocation to OPLCloseTable().

To reproduce the bug start qemu with -soundhw adlib.

Fixes 2eea51bd01 "hw/audio/fmopl: Move ENV_CURVE to .heap to save
32KiB of .bss"

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200324061855.5951-1-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-03-25 09:55:40 +01:00
..
2020-03-10 16:12:49 +01:00
2020-03-19 11:14:24 +00:00
2020-02-21 09:15:04 +11:00
2020-03-17 18:33:05 +00:00
2019-10-28 19:06:47 +01:00
2020-03-17 18:33:05 +00:00
2020-03-05 12:18:08 -05:00
2020-03-17 18:33:05 +00:00
2019-12-17 09:01:14 +01:00
2019-12-17 09:01:14 +01:00