[Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.12,1.13

Eugene Sandulenko sev at users.sourceforge.net
Sun Aug 1 00:38:04 CEST 2004


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

Modified Files:
	actionmap.cpp 
Log Message:
Yet more proper memory free'ing


Index: actionmap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actionmap.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- actionmap.cpp	1 Aug 2004 01:56:21 -0000	1.12
+++ actionmap.cpp	1 Aug 2004 07:37:42 -0000	1.13
@@ -123,10 +123,12 @@
 	for (i = 0; i < _n_exits; i++) {
 		exmap_entry = &_exits_tbl[i];
 
-		free(exmap_entry->pt_tbl);
+		if (exmap_entry->pt_tbl)
+			free(exmap_entry->pt_tbl);
 	}
 
-	free(_exits_tbl);
+	if (_exits_tbl)
+		free(_exits_tbl);
 
 	_exits_loaded = 0;
 	_exits_tbl = NULL;





More information about the Scummvm-git-logs mailing list