From 7b07771e10e3918f8f860e6fe71f176c08eb602a Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 27 May 2002 14:58:49 +0000 Subject: * (ZnFreeTexFont): La d�sallocation de ressources d'une fonte conduisait � un core dump en GL dans le cas o� plusieurs fen�tres avaient �t� cr�es. * Lors de la cr�ation de plus d'une fen�tre en GL le processus d'allocation des ressources de fontes se mettait � boucler. --- generic/Image.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'generic/Image.c') diff --git a/generic/Image.c b/generic/Image.c index 3ef66b4..d820ae8 100644 --- a/generic/Image.c +++ b/generic/Image.c @@ -1242,8 +1242,7 @@ ZnGetTexFont(WidgetInfo *wi, /* * Now locate the texture obj in the texture list for this widget. */ - tfi = txf->tfi; - while (tfi != NULL) { + for (tfi = txf->tfi; tfi != NULL; tfi = tfi->next) { if (tfi->wi == wi) { tfi->refcount++; return tfi; @@ -1574,7 +1573,7 @@ ZnFreeTexFont(ZnTexFontInfo tfi) TexFontInfo *prev, *scan; for (prev=NULL, scan=this->txf->tfi; (scan!=NULL)&&(scan != this); - prev=scan, scan=this->next); + prev=scan, scan=scan->next); if (scan != this) { return; } -- cgit v1.1