diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2016-01-21 15:56:49 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-01-21 15:57:17 -0800 |
commit | c2c8308e15485156c90443f53a945c8705863835 (patch) | |
tree | a84d359e8311bbe26865ad0f34bbecdfde69f302 | |
parent | cb983f747b72c369499f7b738973c422c7996fee (diff) | |
download | efl-c2c8308e15485156c90443f53a945c8705863835.tar.gz |
ector: fix potential crash if cairo is not found on the system.
@fix
T2938
-rw-r--r-- | src/lib/ector/cairo/ector_cairo_software_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ector/cairo/ector_cairo_software_surface.c b/src/lib/ector/cairo/ector_cairo_software_surface.c index 1cc7dafcc3..ef4100f561 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; |