X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=dvi%2Fmdvi-lib%2Ft1.c;h=f88db4b35036451c999f4a4bb32de9b8c03a7b20;hb=6283a64c4012cf257f62b4b12566191e35309d18;hp=bc2900b2049e6ce05126d3f48e3cebf43f056537;hpb=c3e1500a4815225f08e1b20dd066559e8c92c280;p=evince.git diff --git a/dvi/mdvi-lib/t1.c b/dvi/mdvi-lib/t1.c index bc2900b2..f88db4b3 100644 --- a/dvi/mdvi-lib/t1.c +++ b/dvi/mdvi-lib/t1.c @@ -123,7 +123,7 @@ char *t1_lookup_font(const char *name, Ushort *hdpi, Ushort *vdpi) DEBUG((DBG_TYPE1, "(t1) %s: found `%s' (cached)\n", name, info.fullfile)); /* this is a cached lookup */ - return xstrdup(info.fullfile); + return mdvi_strdup(info.fullfile); } /* no file associated to this font? */ @@ -142,7 +142,7 @@ char *t1_lookup_font(const char *name, Ushort *hdpi, Ushort *vdpi) /* get the `base' name */ if(ext) { - newname = xstrdup(name); + newname = mdvi_strdup(name); newname[ext - info.fontfile - 1] = 0; } else newname = (char *)name; /* we don't modify this */ @@ -154,7 +154,7 @@ char *t1_lookup_font(const char *name, Ushort *hdpi, Ushort *vdpi) /* we don't need this anymore */ if(newname != name) - xfree(newname); + mdvi_free(newname); if(filename == NULL) { DEBUG((DBG_TYPE1, "(t1) %s: not found\n", name)); return NULL; @@ -312,7 +312,7 @@ static int t1_really_load_font(DviParams *params, DviFont *font, T1Info *info) i = info->tfminfo->hic - info->tfminfo->loc + 1; if(i != font->hic - font->loc + 1) { /* reset to optimal size */ - font->chars = xrealloc(font->chars, i * sizeof(DviFontChar)); + font->chars = mdvi_realloc(font->chars, i * sizeof(DviFontChar)); } /* get the scaled characters metrics */ @@ -330,7 +330,7 @@ t1_error: /* first destroy the private data */ t1_font_remove(info); /* now reset all chars -- this is the important part */ - xfree(font->chars); + mdvi_free(font->chars); font->chars = NULL; font->loc = font->hic = 0; return -1; @@ -598,8 +598,8 @@ static void t1_font_remove(T1Info *info) if(info->tfminfo) free_font_metrics(info->tfminfo); - /*xfree(info->fontname);*/ - xfree(info); + /*mdvi_free(info->fontname);*/ + mdvi_free(info); } static void t1_free_data(DviFont *font)