[librsvg] rsvg-filter: Fix memory leak



commit 781d8da806ec370b232ff1dbada3aeb58cb1013d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Sep 3 13:46:29 2013 -0400

    rsvg-filter: Fix memory leak

 rsvg-filter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index bc17cb5..1808860 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -2958,7 +2958,7 @@ rsvg_filter_primitive_displacement_map_render (RsvgFilterPrimitive * self, RsvgF
     cairo_surface_flush (in);
 
     in2 = rsvg_filter_get_in (upself->in2, ctx);
-    if (in == NULL) {
+    if (in2 == NULL) {
         cairo_surface_destroy (in);
         return;
     }


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