summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_buffer.c
diff options
context:
space:
mode:
authorGwanglim Lee <gl77.lee@samsung.com>2014-08-06 07:27:09 -0400
committerChris Michael <cp.michael@samsung.com>2014-08-06 07:28:18 -0400
commit9dd6d70dd27a474b4da55e6cca26df162524b13f (patch)
tree63a19194370422628d2cdc1905d2428451ebfa9a /src/lib/ecore_evas/ecore_evas_buffer.c
parent52fab4e55de2122e475bac6d09c2f694c283d3ef (diff)
ecore_evas_buffer: fix dereference null return value
Summary: This fixes coverity CID 1210810 @fix Test Plan: N/A Reviewers: raster, cedric, stefan_schmidt, devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1273
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_buffer.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c
index 4f0211c4b3..dc2331203a 100644
--- a/src/lib/ecore_evas/ecore_evas_buffer.c
+++ b/src/lib/ecore_evas/ecore_evas_buffer.c
@@ -25,7 +25,8 @@ _ecore_evas_buffer_free(Ecore_Evas *ee)
25 25
26 ee2 = evas_object_data_get(bdata->image, "Ecore_Evas_Parent"); 26 ee2 = evas_object_data_get(bdata->image, "Ecore_Evas_Parent");
27 evas_object_del(bdata->image); 27 evas_object_del(bdata->image);
28 ee2->sub_ecore_evas = eina_list_remove(ee2->sub_ecore_evas, ee); 28 if (ee2)
29 ee2->sub_ecore_evas = eina_list_remove(ee2->sub_ecore_evas, ee);
29 } 30 }
30 else 31 else
31 { 32 {