summaryrefslogtreecommitdiff
path: root/src/lib/ector/software
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-03-15 12:50:20 -0400
committerCedric Bail <cedric@osg.samsung.com>2018-03-20 17:20:56 -0700
commit4c4177ac207f982de8139c47c7afedd26ff9e15a (patch)
tree1913e890dc525621f4dec3ce281b340d81608a72 /src/lib/ector/software
parenta1bf513920e813037756e01cc2e01770befea77c (diff)
efl: use efl_add_ref to create objects which have no parent
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
Diffstat (limited to 'src/lib/ector/software')
-rw-r--r--src/lib/ector/software/ector_software_surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index e3e72fbd2d..2907272f40 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -201,11 +201,11 @@ _ector_software_surface_ector_surface_renderer_factory_new(Eo *obj,
201 const Efl_Class *type) 201 const Efl_Class *type)
202{ 202{
203 if (type == ECTOR_RENDERER_SHAPE_MIXIN) 203 if (type == ECTOR_RENDERER_SHAPE_MIXIN)
204 return efl_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(efl_added, obj)); 204 return efl_add_ref(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(efl_added, obj));
205 else if (type == ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN) 205 else if (type == ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN)
206 return efl_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(efl_added, obj)); 206 return efl_add_ref(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(efl_added, obj));
207 else if (type == ECTOR_RENDERER_GRADIENT_RADIAL_MIXIN) 207 else if (type == ECTOR_RENDERER_GRADIENT_RADIAL_MIXIN)
208 return efl_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(efl_added, obj)); 208 return efl_add_ref(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(efl_added, obj));
209 209
210 ERR("Couldn't find class for type: %s", efl_class_name_get(type)); 210 ERR("Couldn't find class for type: %s", efl_class_name_get(type));
211 return NULL; 211 return NULL;