diff options
author | mdejong <mdejong> | 2002-07-16 23:29:33 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2002-07-16 23:29:33 (GMT) |
commit | 406c7254eb663e519e34e440ce87c0641001ee9d (patch) | |
tree | 7de23bbdc5cea3b7bcfed732b688ae07c9e08ba9 /generic/tkFont.c | |
parent | 543d7c4f0d1384121c842977ae4f2c359128fe3d (diff) | |
download | tk-406c7254eb663e519e34e440ce87c0641001ee9d.zip tk-406c7254eb663e519e34e440ce87c0641001ee9d.tar.gz tk-406c7254eb663e519e34e440ce87c0641001ee9d.tar.bz2 |
* generic/tkFont.c (TkFontPkgFree): Call panic instead
of assert since assert is not used in the rest of Tk.
[Tk bug 579651]
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r-- | generic/tkFont.c | 9 |
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"); |