[librsvg] filter: Plug gaussian convolution matrix leak



commit 2cb6d5189466eaf75442cd753240a0cffeb54f72
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Aug 4 11:32:11 2015 +0200

    filter: Plug gaussian convolution matrix leak
    
    The convolution matrix on the Y axis is leaked.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748608

 rsvg-filter.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index 7035464..35cd1e8 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -1811,7 +1811,7 @@ gaussian_blur_surface (cairo_surface_t *in,
 
     if (sy != 0.0) {
         gint box_height;
-        gdouble *gaussian_matrix;
+        gdouble *gaussian_matrix = NULL;
         gint gaussian_matrix_len;
         guchar *col_buffer;
         guchar *col1, *col2;
@@ -1851,6 +1851,7 @@ gaussian_blur_surface (cairo_surface_t *in,
             put_column (col2, out_data, out_stride, bpp, height, x);
         }
 
+        g_free (gaussian_matrix);
         g_free (col_buffer);
     }
 



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