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
This commit is contained in:
Cedric BAIL 2018-11-16 12:06:34 +09:00 committed by Hermet Park
parent 3a35e64718
commit 2dd9dbff60
1 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@ static void
_ector_renderer_shape_efl_object_invalidate(Eo *obj EINA_UNUSED,
Ector_Renderer_Shape_Data *pd)
{
if (pd->fill) efl_unref(pd->fill);
if (pd->stroke.fill) efl_unref(pd->stroke.fill);
if (pd->stroke.marker) efl_unref(pd->stroke.marker);
efl_replace(&pd->fill, NULL);
efl_replace(&pd->stroke.fill, NULL);
efl_replace(&pd->stroke.marker, NULL);
}