fixed bug in gfxfontlist_free
authorkramm <kramm>
Fri, 9 Nov 2007 10:24:12 +0000 (10:24 +0000)
committerkramm <kramm>
Fri, 9 Nov 2007 10:24:12 +0000 (10:24 +0000)
lib/gfxtools.c

index f34bcf4..06930ec 100644 (file)
@@ -778,7 +778,7 @@ void gfxfontlist_free(gfxfontlist_t*list, char deletefonts)
 {
     gfxfontlist_t*l = list;
     while(l) {
-       gfxfontlist_t*next = l;
+       gfxfontlist_t*next = l->next;
        memset(l, 0, sizeof(*l));
        if(l->font) {
            gfxfont_free(l->font);