Evas filters: Another clang warning fix

Prevent error case from crashing.
This commit is contained in:
Jean-Philippe Andre 2014-02-14 12:45:55 +09:00
parent a4ecf34316
commit df65e71e79
1 changed files with 2 additions and 0 deletions

View File

@ -876,6 +876,7 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
if (!convert && (ox || oy))
{
copybuf = evas_filter_temporary_buffer_get(ctx, 0, 0, in->alpha_only);
if (!copybuf) goto fail;
copy_back = EINA_TRUE;
}
@ -960,6 +961,7 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
if (copy_back)
{
if (!cmd) goto fail;
if (!copybuf) goto fail;
INF("Add copy %d -> %d", copybuf->id, blur_out->id);
cmd->ENFN->context_color_set(cmd->ENDT, drawctx, 0, 0, 0, 255);
id = evas_filter_command_blend_add(ctx, drawctx, copybuf->id, blur_out->id, ox, oy, EVAS_FILTER_FILL_MODE_NONE);