summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkFont.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 31571d1..06fa261 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -11,17 +11,13 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFont.c,v 1.16 2002/06/26 22:12:43 a_kovalenko Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.17 2002/07/16 23:29:33 mdejong Exp $
*/
#include "tkPort.h"
#include "tkInt.h"
#include "tkFont.h"
-#ifndef assert
-#include <assert.h>
-#endif
-
/*
* The following structure is used to keep track of all the fonts that
* exist in the current application. It must be stored in the
@@ -439,7 +435,8 @@ TkFontPkgFree(mainPtr)
fprintf(stderr, "Font %s still in cache.\n",
Tcl_GetHashKey(&fiPtr->fontCache, searchPtr));
}
- assert(fontsLeft == 0);
+ if (fontsLeft == 0)
+ panic("no fontsLeft");
#ifdef PURIFY
if (fontsLeft) {
panic("TkFontPkgFree: all fonts should have been freed already");