[Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.10,1.11 actionmap.h,1.6,1.7 saga.cpp,1.25,1.26

Eugene Sandulenko sev at users.sourceforge.net
Sat Jul 31 17:08:03 CEST 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18167

Modified Files:
	actionmap.cpp actionmap.h saga.cpp 
Log Message:
Forgot to implement destructor for ActionMap


Index: actionmap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actionmap.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- actionmap.cpp	1 Aug 2004 00:03:45 -0000	1.10
+++ actionmap.cpp	1 Aug 2004 00:07:17 -0000	1.11
@@ -46,6 +46,11 @@
 	_initialized = true;
 }
 
+ActionMap::~ActionMap(void) {
+	freeMap();
+}
+
+
 int ActionMap::load(const byte * exmap_res, size_t exmap_res_len) {
 	// Loads exit map data from specified exit map resource
 	R_ACTIONMAP_ENTRY *exmap_entry;

Index: actionmap.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actionmap.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- actionmap.h	1 Aug 2004 00:03:45 -0000	1.6
+++ actionmap.h	1 Aug 2004 00:07:17 -0000	1.7
@@ -42,6 +42,7 @@
  public:
 	int reg(void);
 	ActionMap(void);
+	~ActionMap(void);
 
 	int load(const byte *exmap_res, size_t exmap_res_len);
 	int draw(R_SURFACE *ds, int color);

Index: saga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/saga.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- saga.cpp	1 Aug 2004 00:03:45 -0000	1.25
+++ saga.cpp	1 Aug 2004 00:07:17 -0000	1.26
@@ -245,6 +245,7 @@
 	EVENT_Shutdown();
 
 	delete _render;
+	delete _actionMap;
 	delete _sndRes;
 	// Shutdown system modules */
 	delete _music;





More information about the Scummvm-git-logs mailing list