summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-05-18 18:13:17 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:08 +0900
commit8716be5193650bac671aee4538ed66aa380a4059 (patch)
treeffebbabbd313816993a26aceb3faed7b2156072c /src
parent2faaef966e41b35656fd77be94701009ad183c42 (diff)
Evas filters: Fix potential crash
Diffstat (limited to 'src')
-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 523018f..295c258 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -1566,6 +1566,8 @@ evas_filter_target_set(Evas_Filter_Context *ctx, void *draw_context,
1566 1566
1567 fb = _filter_buffer_get(ctx, EVAS_FILTER_BUFFER_OUTPUT_ID); 1567 fb = _filter_buffer_get(ctx, EVAS_FILTER_BUFFER_OUTPUT_ID);
1568 EINA_SAFETY_ON_NULL_RETURN_VAL(fb, EINA_FALSE); 1568 EINA_SAFETY_ON_NULL_RETURN_VAL(fb, EINA_FALSE);
1569 if (!fb->backing)
1570 return EINA_FALSE;
1569 1571
1570 fb->glimage = ENFN->image_new_from_data 1572 fb->glimage = ENFN->image_new_from_data
1571 (ENDT, fb->w, fb->h, fb->backing->image.data, EINA_TRUE, 1573 (ENDT, fb->w, fb->h, fb->backing->image.data, EINA_TRUE,