diff psg.c @ 884:252dfd29831d

Selecting a second game from the menu now works
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 22:56:59 -0800
parents 715475788e93
children bd549b25c362
line wrap: on
line diff
--- a/psg.c	Fri Nov 13 19:15:37 2015 -0800
+++ b/psg.c	Fri Nov 13 22:56:59 2015 -0800
@@ -24,6 +24,15 @@
 	}
 }
 
+void psg_free(psg_context *context)
+{
+	free(context->audio_buffer);
+	//TODO: Figure out how to make this 100% safe
+	//audio thread could still be using this
+	free(context->back_buffer);
+	free(context);
+}
+
 #define BUFFER_INC_RES 1000000000UL
 
 void psg_adjust_master_clock(psg_context * context, uint32_t master_clock)