project_files/frontlib/model/gamesetup.c
changeset 7275 15f722e0b96f
parent 7179 f84805e6df03
child 7314 6171f0bad318
--- a/project_files/frontlib/model/gamesetup.c	Mon Jun 25 15:21:18 2012 +0200
+++ b/project_files/frontlib/model/gamesetup.c	Wed Jun 27 18:02:45 2012 +0200
@@ -1,2 +1,13 @@
 #include "gamesetup.h"
 
+#include <stdlib.h>
+
+void flib_gamesetup_destroy(flib_gamesetup *gamesetup) {
+	if(gamesetup) {
+		free(gamesetup->script);
+		flib_cfg_release(gamesetup->gamescheme);
+		flib_map_release(gamesetup->map);
+		flib_teamlist_destroy(gamesetup->teamlist);
+		free(gamesetup);
+	}
+}