cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c2c8308e15485156c90443f53a945c8705863835

commit c2c8308e15485156c90443f53a945c8705863835
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Jan 21 15:56:49 2016 -0800

    ector: fix potential crash if cairo is not found on the system.
    
    @fix
    
    T2938
---
 src/lib/ector/cairo/ector_cairo_software_surface.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ector/cairo/ector_cairo_software_surface.c 
b/src/lib/ector/cairo/ector_cairo_software_surface.c
index 1cc7daf..ef4100f 100644
--- a/src/lib/ector/cairo/ector_cairo_software_surface.c
+++ b/src/lib/ector/cairo/ector_cairo_software_surface.c
@@ -106,6 +106,8 @@ static Eo_Base *
 _ector_cairo_software_surface_eo_base_constructor(Eo *obj, 
Ector_Cairo_Software_Surface_Data *pd)
 {
    eo_do_super(obj, MY_CLASS, obj = eo_constructor());
+
+   if (!obj) return NULL;
    pd->base = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN);
    pd->base->generic = eo_data_ref(obj, ECTOR_GENERIC_BUFFER_MIXIN);
    pd->base->generic->eo = obj;

-- 


Reply via email to