[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/video font.c
From: |
Nehal Mistry |
Subject: |
[Stratagus-CVS] stratagus/src/video font.c |
Date: |
Mon, 17 Nov 2003 14:30:09 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Nehal Mistry <address@hidden> 03/11/17 14:30:06
Modified files:
src/video : font.c
Log message:
fix CleanFonts crash at exit
Patches:
Index: stratagus/src/video/font.c
diff -u stratagus/src/video/font.c:1.60 stratagus/src/video/font.c:1.61
--- stratagus/src/video/font.c:1.60 Mon Nov 17 14:14:45 2003
+++ stratagus/src/video/font.c Mon Nov 17 14:30:06 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: font.c,v 1.60 2003/11/17 19:14:45 nehalmistry Exp $
+// $Id: font.c,v 1.61 2003/11/17 19:30:06 nehalmistry Exp $
//@{
@@ -1372,8 +1372,10 @@
global void CleanFonts(void)
{
unsigned i;
+#ifndef USE_SDL_SURFACE
FontColorMapping* fcm;
FontColorMapping* temp;
+#endif
for (i = 0; i < sizeof(Fonts) / sizeof(*Fonts); ++i) {
free(Fonts[i].File);
@@ -1382,6 +1384,7 @@
Fonts[i].Graphic = NULL;
}
+#ifndef USE_SDL_SURFACE
fcm = FontColorMappings;
while (fcm) {
temp = fcm->Next;
@@ -1389,6 +1392,7 @@
free(fcm);
fcm = temp;
}
+#endif
FontColorMappings = NULL;
}
- [Stratagus-CVS] stratagus/src/video font.c,
Nehal Mistry <=