[librsvg] filter: Plug a leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] filter: Plug a leak
- Date: Tue, 4 Aug 2015 15:05:47 +0000 (UTC)
commit e3983543c98c03babe8956d7911f0bd1ec5550a9
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 4 12:45:23 2015 +0200
filter: Plug a leak
https://bugzilla.gnome.org/show_bug.cgi?id=748608
rsvg-filter.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index 35cd1e8..dfcdc20 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -1761,7 +1761,7 @@ gaussian_blur_surface (cairo_surface_t *in,
gdouble *gaussian_matrix;
gint gaussian_matrix_len;
int y;
- guchar *row_buffer;
+ guchar *row_buffer = NULL;
guchar *row1, *row2;
if (use_box_blur) {
@@ -1805,6 +1805,8 @@ gaussian_blur_surface (cairo_surface_t *in,
if (!use_box_blur)
g_free (gaussian_matrix);
+ g_free (row_buffer);
+
out_has_data = TRUE;
} else
out_has_data = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]