summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-14 12:45:55 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-14 13:06:05 +0900
commitdf65e71e79e3395ecb8105e6b1ebf41a2c4b347a (patch)
tree9fc3a038a7d8244d356fdaebf88317c5de60ecbe
parenta4ecf34316593fde02fea16bdbae3be659dd1da2 (diff)
Evas filters: Another clang warning fix
Prevent error case from crashing.
-rw-r--r--src/lib/evas/filters/evas_filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c
index cd5602c760..74b068c65b 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -876,6 +876,7 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
876 if (!convert && (ox || oy)) 876 if (!convert && (ox || oy))
877 { 877 {
878 copybuf = evas_filter_temporary_buffer_get(ctx, 0, 0, in->alpha_only); 878 copybuf = evas_filter_temporary_buffer_get(ctx, 0, 0, in->alpha_only);
879 if (!copybuf) goto fail;
879 copy_back = EINA_TRUE; 880 copy_back = EINA_TRUE;
880 } 881 }
881 882
@@ -960,6 +961,7 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
960 if (copy_back) 961 if (copy_back)
961 { 962 {
962 if (!cmd) goto fail; 963 if (!cmd) goto fail;
964 if (!copybuf) goto fail;
963 INF("Add copy %d -> %d", copybuf->id, blur_out->id); 965 INF("Add copy %d -> %d", copybuf->id, blur_out->id);
964 cmd->ENFN->context_color_set(cmd->ENDT, drawctx, 0, 0, 0, 255); 966 cmd->ENFN->context_color_set(cmd->ENDT, drawctx, 0, 0, 0, 255);
965 id = evas_filter_command_blend_add(ctx, drawctx, copybuf->id, blur_out->id, ox, oy, EVAS_FILTER_FILL_MODE_NONE); 967 id = evas_filter_command_blend_add(ctx, drawctx, copybuf->id, blur_out->id, ox, oy, EVAS_FILTER_FILL_MODE_NONE);