diff options
author | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-23 21:05:32 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2005-06-23 21:05:32 (GMT) |
commit | a8e6dab2d1f20a861df947c5705b6bbd0cb81c1a (patch) | |
tree | cdea106e2e1798cba68d4e492e724b832ab6411d /dvi/mdvi-lib/font.c | |
parent | 1f82fa9589a57a49476066010861a0dae84f39a1 (diff) |
Rename xmalloc to mdvi_malloc to avoid libtool conflict, update year in
copyright.
Diffstat (limited to 'dvi/mdvi-lib/font.c')
-rw-r--r-- | dvi/mdvi-lib/font.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dvi/mdvi-lib/font.c b/dvi/mdvi-lib/font.c index 265b081..ca3436c 100644 --- a/dvi/mdvi-lib/font.c +++ b/dvi/mdvi-lib/font.c @@ -74,7 +74,7 @@ void font_drop_one(DviFontRef *ref) DviFont *font; font = ref->ref; - xfree(ref); + mdvi_free(ref); /* drop all children */ for(ref = font->subfonts; ref; ref = ref->next) { /* just adjust the reference counts */ @@ -131,7 +131,7 @@ int font_free_unused(DviDevice *dev) /* get rid of subfonts (but can't use `drop_chain' here) */ for(; (ref = font->subfonts); ) { font->subfonts = ref->next; - xfree(ref); + mdvi_free(ref); } /* remove this font */ font_reset_font_glyphs(dev, font, MDVI_FONTSEL_GLYPH); @@ -140,10 +140,10 @@ int font_free_unused(DviDevice *dev) font->finfo->freedata(font); /* destroy characters */ if(font->chars) - xfree(font->chars); - xfree(font->fontname); - xfree(font->filename); - xfree(font); + mdvi_free(font->chars); + mdvi_free(font->fontname); + mdvi_free(font->filename); + mdvi_free(font); } DEBUG((DBG_FONTS, "%d unused fonts removed\n", count)); return count; |