summaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sms.c b/sms.c
index e413964..2751c72 100644
--- a/sms.c
+++ b/sms.c
@@ -581,8 +581,7 @@ sms_context *alloc_configure_sms(system_media *media, uint32_t opts, uint8_t for
sms->psg = malloc(sizeof(psg_context));
psg_init(sms->psg, sms->master_clock, 15*16);
- sms->vdp = malloc(sizeof(vdp_context));
- init_vdp_context(sms->vdp, 0);
+ sms->vdp = init_vdp_context(0);
sms->vdp->system = &sms->header;
sms->header.info.save_type = SAVE_NONE;