X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxtools.c;h=e8affe74f26137bb60bf176272dfaa55ba548706;hb=17ea3cf04c2e8dd754b3b85ab530c0a3a06af946;hp=327a0cba99eb843d69fccceaa31c42f5558025e5;hpb=463484186fcdaae239eb123b89601cebac00e49a;p=swftools.git diff --git a/lib/gfxtools.c b/lib/gfxtools.c index 327a0cb..e8affe7 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -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; }