diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-08-04 11:32:11 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-08-04 17:05:13 +0200 |
commit | 2cb6d5189466eaf75442cd753240a0cffeb54f72 (patch) | |
tree | edfdde19032a4c45cf89267329d79cfa80be3a97 | |
parent | e9fa71c521908cb0f4a9257d0cba19e6e24a6616 (diff) | |
download | librsvg-2cb6d5189466eaf75442cd753240a0cffeb54f72.tar.gz |
filter: Plug gaussian convolution matrix leak
The convolution matrix on the Y axis is leaked.
https://bugzilla.gnome.org/show_bug.cgi?id=748608
-rw-r--r-- | rsvg-filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rsvg-filter.c b/rsvg-filter.c index 7035464c..35cd1e88 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); } |