summaryrefslogtreecommitdiff
path: root/src/cairo-script-surface.c
diff options
context:
space:
mode:
authorhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
committerhk57.kim <hk57.kim@samsung.com>2016-03-16 16:42:19 +0900
commitaf39a3b110b53f9ab84de1a91483b5fc952ce6c0 (patch)
tree4556e9cd9ecfa282308bd796343a6634db83eadb /src/cairo-script-surface.c
parentea5563808b7f553121fbed5bc6b4bf908b1a8c05 (diff)
downloadcairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.tar.gz
cairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.tar.bz2
cairo-af39a3b110b53f9ab84de1a91483b5fc952ce6c0.zip
Change-Id: Iff4a3ad9811ba4454be3e29d8876a5f3974f4c7f Signed-off-by: hk57.kim <hk57.kim@samsung.com>
Diffstat (limited to 'src/cairo-script-surface.c')
-rw-r--r--src/cairo-script-surface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-script-surface.c b/src/cairo-script-surface.c
index 68c1528f6..fdea7bb0a 100644
--- a/src/cairo-script-surface.c
+++ b/src/cairo-script-surface.c
@@ -3778,7 +3778,8 @@ cairo_script_create (const char *filename)
stream = _cairo_output_stream_create_for_filename (filename);
if ((status = _cairo_output_stream_get_status (stream))) {
- _cairo_output_stream_destroy (stream);
+ cairo_status_t ret;
+ ret = _cairo_output_stream_destroy (stream);
return _cairo_device_create_in_error (status);
}
@@ -3812,7 +3813,8 @@ cairo_script_create_for_stream (cairo_write_func_t write_func,
stream = _cairo_output_stream_create (write_func, NULL, closure);
if ((status = _cairo_output_stream_get_status (stream))) {
- _cairo_output_stream_destroy (stream);
+ cairo_status_t ret;
+ ret = _cairo_output_stream_destroy (stream);
return _cairo_device_create_in_error (status);
}