git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1758c3e
)
fixed gfxfontlist_free
author
kramm
<kramm>
Mon, 19 Nov 2007 16:32:01 +0000
(16:32 +0000)
committer
kramm
<kramm>
Mon, 19 Nov 2007 16:32:01 +0000
(16:32 +0000)
lib/gfxtools.c
patch
|
blob
|
history
diff --git
a/lib/gfxtools.c
b/lib/gfxtools.c
index
327a0cb
..
e8affe7
100644
(file)
--- 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;
gfxfontlist_t*l = list;
while(l) {
gfxfontlist_t*next = l->next;
- memset(l, 0, sizeof(*l));
if(l->font) {
if(l->font) {
- gfxfont_free(l->font);
+ gfxfont_free(l->font);l->font;
}
}
+ l->next = 0;
free(l);
l = next;
}
free(l);
l = next;
}