Changeset 253


Ignore:
Timestamp:
Jul 1, 2008, 6:43:38 PM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: Poppler library updated to version 0.8.4

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.cpp

    r251 r253  
    101101extern "C" char * EXPENTRY getDescription()
    102102{
    103     return "PDF plugin, based on poppler library v0.8.3";
     103    return "PDF plugin, based on poppler library v0.8.4";
    104104}
    105105
  • trunk/Lucide/changelog

    r251 r253  
    111.XX:
    2   - PDF plugin: Poppler (pdf rendering) library updated to version 0.8.3.
     2  - PDF plugin: Poppler (pdf rendering) library updated to version 0.8.4.
    33  - PDF plugin: freetype library updated to version 2.3.7.
    44
  • trunk/poppler/mypoppler/poppler/ABWOutputDev.cc

    r250 r253  
    254254    }
    255255  }
     256  delete[] stt;
     257  delete[] end;
    256258  return gap;
    257259}
  • trunk/poppler/mypoppler/poppler/CairoOutputDev.cc

    r250 r253  
    7575//------------------------------------------------------------------------
    7676
     77// We cannot tie the lifetime of an FT_Library object to that of
     78// CairoOutputDev, since any FT_Faces created with it may end up with a
     79// reference by Cairo which can be held long after the CairoOutputDev is
     80// deleted.  The simplest way to avoid problems is to never tear down the
     81// FT_Library instance; to avoid leaks, just use a single global instance
     82// initialized the first time it is needed.
     83FT_Library CairoOutputDev::ft_lib;
     84GBool CairoOutputDev::ft_lib_initialized = gFalse;
     85
    7786CairoOutputDev::CairoOutputDev() {
    7887  xref = NULL;
    7988
    80   FT_Init_FreeType(&ft_lib);
     89  if (!ft_lib_initialized) {
     90    FT_Init_FreeType(&ft_lib);
     91    ft_lib_initialized = gTrue;
     92  }
     93
    8194  fontEngine = NULL;
    8295  glyphs = NULL;
     
    103116    delete fontEngine;
    104117  }
    105   FT_Done_FreeType(ft_lib);
    106  
     118
    107119  if (cairo)
    108120    cairo_destroy (cairo);
  • trunk/poppler/mypoppler/poppler/CairoOutputDev.h

    r250 r253  
    207207  XRef *xref;                   // xref table for current document
    208208
    209   FT_Library ft_lib;
     209  static FT_Library ft_lib;
     210  static GBool ft_lib_initialized;
     211
    210212  CairoFontEngine *fontEngine;
    211213  cairo_t *cairo;
  • trunk/poppler/mypoppler/poppler/XRef.cc

    r250 r253  
    428428      entry.gen = obj.getInt();
    429429      entry.obj.initNull ();
     430      entry.updated = false;
    430431      obj.free();
    431432      parser->getObj(&obj);
Note: See TracChangeset for help on using the changeset viewer.