"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/libpbmfont0.c" between
netpbm-10.91.00.tar.xz and netpbm-10.91.01.tar.xz

About: Netpbm is a toolkit for conversion of images between a variety of different formats, as well as to allow a few basic image operations (a successor to Jef Poskanzer’s PBMPlus package). Latest release.

libpbmfont0.c  (netpbm-10.91.00.tar.xz):libpbmfont0.c  (netpbm-10.91.01.tar.xz)
skipping to change at line 242 skipping to change at line 242
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Free font2 structure, but not the glyph data Free font2 structure, but not the glyph data
---------------------------------------------------------------------------- */ ---------------------------------------------------------------------------- */
pm_strfree(font2P->name); pm_strfree(font2P->name);
pm_strfree(font2P->charset_string); pm_strfree(font2P->charset_string);
free(font2P->glyph); free(font2P->glyph);
if (font2P->selectorP)
pm_selector_destroy(font2P->selectorP);
if (font2P->oldfont) if (font2P->oldfont)
pbm_freearray(font2P->oldfont, font2P->frows); pbm_freearray(font2P->oldfont, font2P->frows);
free(font2P); free(font2P);
} }
void void
pbm_destroybdffont2(struct font2 * const font2P) { pbm_destroybdffont2(struct font2 * const font2P) {
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Free font2 structure and glyph data Free font2 structure and glyph data
Examines the 'load_fn' field to check whether the object is fixed data. Examines the 'load_fn' field to check whether the object is fixed data.
Do nothing if 'load_fn' is 'FIXED_DATA'. Do nothing if 'load_fn' is 'FIXED_DATA'.
---------------------------------------------------------------------------- */ ---------------------------------------------------------------------------- */
if (font2P->load_fn != FIXED_DATA) { if (font2P->load_fn != FIXED_DATA) {
destroyGlyphData(font2P->glyph, font2P->maxglyph, font2P->selectorP); destroyGlyphData(font2P->glyph, font2P->maxglyph, font2P->selectorP);
pbm_destroybdffont2_base(font2P); pbm_destroybdffont2_base(font2P);
} }
} }
void void
pbm_destroybdffont(struct font * const fontP) { pbm_destroybdffont(struct font * const fontP) {
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Free font structure and glyph data. Free font structure and glyph data.
For freeing a structure created by pbm_loadbdffont() or pbm_loadpbmfont(). For freeing a structure created by pbm_loadbdffont() or pbm_loadpbmfont().
---------------------------------------------------------------------------- */ ---------------------------------------------------------------------------- */
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)