Fix for VDSvace issue: DF160920-00017 95/90995/1
authorRavi Nanjundappa <nravi.n@samsung.com>
Wed, 5 Oct 2016 09:05:14 +0000 (14:35 +0530)
committerRavi Nanjundappa <nravi.n@samsung.com>
Wed, 5 Oct 2016 09:07:38 +0000 (14:37 +0530)
Return the locally assigned status value instead of pattern->status,
because the pattern handle will be invalid after the call to
cairo_pattern_destroy(pattern)

Change-Id: I0c38f6c4aac619de2d27b5136a41870bee6e78cc
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
src/cairo-default-context.c

index 26644ea..36ddb75 100644 (file)
@@ -310,7 +310,7 @@ _cairo_default_context_set_source_rgba (void *abstract_cr, double red, double gr
         status = pattern->status;
         cairo_pattern_destroy (pattern);
         CAIRO_TRACE_END (__func__);
-        return pattern->status;
+        return status;
     }
 
     status = _cairo_default_context_set_source (cr, pattern);