fixed gfxfontlist_free
authorkramm <kramm>
Mon, 19 Nov 2007 16:32:01 +0000 (16:32 +0000)
committerkramm <kramm>
Mon, 19 Nov 2007 16:32:01 +0000 (16:32 +0000)
lib/gfxtools.c

index 327a0cb..e8affe7 100644 (file)
@@ -780,10 +780,10 @@ void gfxfontlist_free(gfxfontlist_t*list, char deletefonts)
     gfxfontlist_t*l = list;
     while(l) {
        gfxfontlist_t*next = l->next;
-       memset(l, 0, sizeof(*l));
        if(l->font) {
-           gfxfont_free(l->font);
+           gfxfont_free(l->font);l->font;
        }
+       l->next = 0;
        free(l);
        l = next;
     }