summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-11-16 12:06:34 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-16 12:06:35 +0900
commit2dd9dbff6034ff264dd3329e2d0017ad901e9210 (patch)
tree8df95b45a2f47ed6cac7c61046d55b9139000ca5 /src/lib/ector
parent3a35e6471831769ed315261404388990497fa30c (diff)
ector: use efl_replace to make sure that no dangling pointer is left being.
Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7273
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/ector_renderer_shape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ector/ector_renderer_shape.c b/src/lib/ector/ector_renderer_shape.c
index 628acb6d61..2b419a77c3 100644
--- a/src/lib/ector/ector_renderer_shape.c
+++ b/src/lib/ector/ector_renderer_shape.c
@@ -58,9 +58,9 @@ static void
58_ector_renderer_shape_efl_object_invalidate(Eo *obj EINA_UNUSED, 58_ector_renderer_shape_efl_object_invalidate(Eo *obj EINA_UNUSED,
59 Ector_Renderer_Shape_Data *pd) 59 Ector_Renderer_Shape_Data *pd)
60{ 60{
61 if (pd->fill) efl_unref(pd->fill); 61 efl_replace(&pd->fill, NULL);
62 if (pd->stroke.fill) efl_unref(pd->stroke.fill); 62 efl_replace(&pd->stroke.fill, NULL);
63 if (pd->stroke.marker) efl_unref(pd->stroke.marker); 63 efl_replace(&pd->stroke.marker, NULL);
64} 64}
65 65
66 66