Ignore:
Timestamp:
Sep 2, 2008, 10:06:03 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: Poppler library updated to version 0.8.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/poppler/CairoOutputDev.cc

    r253 r255  
    123123  if (group)
    124124    cairo_pattern_destroy (group);
     125  if (mask)
     126    cairo_pattern_destroy (mask);
    125127  if (shape)
    126128    cairo_pattern_destroy (shape);
     
    819821void CairoOutputDev::setSoftMask(GfxState * state, double * bbox, GBool alpha,
    820822                                 Function * transferFunc, GfxColor * backdropColor) {
     823  cairo_pattern_destroy(mask);
     824
    821825  if (alpha == false) {
    822826    /* We need to mask according to the luminocity of the group.
     
    855859    cairo_set_source(maskCtx, group);
    856860    cairo_paint(maskCtx);
     861
     862    /* XXX status = cairo_status(maskCtx); */
     863    cairo_destroy(maskCtx);
    857864
    858865    /* convert to a luminocity map */
     
    885892
    886893    cairo_surface_destroy(source);
    887     cairo_surface_destroy(pats);
    888894  } else {
    889     cairo_pattern_reference(group);
    890     mask = group;
     895    mask = cairo_pattern_reference(group);
    891896  }
    892897
Note: See TracChangeset for help on using the changeset viewer.