Permalink
Browse files

add missing check for #4899

  • Loading branch information...
tbonfort committed Apr 1, 2014
1 parent 344e7de commit 75a540818262cc7a005b05bee50b5f109a63bef5
Showing with 1 addition and 0 deletions.
  1. +1 −0 mapcairo.c
View
@@ -812,6 +812,7 @@ int mergeRasterBufferCairo(imageObj *img, rasterBufferObj *rb, double opacity,
void freeSVGCache(symbolObj *s) {
#if defined(USE_SVG_CAIRO) || defined(USE_RSVG)
struct svg_symbol_cache *cache = s->renderer_cache;
+ if(!cache) return;
assert(cache->svgc);
#ifdef USE_SVG_CAIRO
svg_cairo_destroy(cache->svgc);

0 comments on commit 75a5408

Please sign in to comment.