[librsvg] bgo#748608 - Destroy cairo_t after use



commit 94c48598543518c43f0e2ee94885483ab54d2a95
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 2 22:14:46 2015 +0200

    bgo#748608 - Destroy cairo_t after use
    
    Otherwise the cairo_t, and the surface it's created on are leaked.

 rsvg-filter.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index 9d3ef5e..61af650 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -1902,6 +1902,7 @@ rsvg_filter_primitive_gaussian_blur_render (RsvgFilterPrimitive * self, RsvgFilt
                          boundarys.x0, boundarys.y0,
                          boundarys.x1 - boundarys.x0, boundarys.y1 - boundarys.y0);
         cairo_fill (cr);
+        cairo_destroy (cr);
     }
 
     op.surface = output;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]