summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-01-21 15:56:49 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-01-21 15:57:17 -0800
commitc2c8308e15485156c90443f53a945c8705863835 (patch)
treea84d359e8311bbe26865ad0f34bbecdfde69f302
parentcb983f747b72c369499f7b738973c422c7996fee (diff)
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.c2
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 *
106_ector_cairo_software_surface_eo_base_constructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd) 106_ector_cairo_software_surface_eo_base_constructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd)
107{ 107{
108 eo_do_super(obj, MY_CLASS, obj = eo_constructor()); 108 eo_do_super(obj, MY_CLASS, obj = eo_constructor());
109
110 if (!obj) return NULL;
109 pd->base = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN); 111 pd->base = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN);
110 pd->base->generic = eo_data_ref(obj, ECTOR_GENERIC_BUFFER_MIXIN); 112 pd->base->generic = eo_data_ref(obj, ECTOR_GENERIC_BUFFER_MIXIN);
111 pd->base->generic->eo = obj; 113 pd->base->generic->eo = obj;